Verified Commit dce8ca65 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3276939 by daffie, aziza_a, larowlan: The Symfony method...

Issue #3276939 by daffie, aziza_a, larowlan: The Symfony method Request::setTrustedHosts() is a static method, we use it as non-static

(cherry picked from commit e8cdbb69)
parent 9f7a8d2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1557,7 +1557,7 @@ public static function validateHostname(Request $request) {
   * @see \Drupal\Core\Http\TrustedHostsRequestFactory
   */
  protected static function setupTrustedHosts(Request $request, $host_patterns) {
    $request->setTrustedHosts($host_patterns);
    Request::setTrustedHosts($host_patterns);

    // Get the host, which will validate the current request.
    try {