From e8cdbb6923f3dbe8dc8efbc78e4ff21783f90385 Mon Sep 17 00:00:00 2001 From: Lee Rowlands <lee.rowlands@previousnext.com.au> Date: Fri, 24 Feb 2023 07:31:23 +1000 Subject: [PATCH] Issue #3276939 by daffie, aziza_a, larowlan: The Symfony method Request::setTrustedHosts() is a static method, we use it as non-static --- core/lib/Drupal/Core/DrupalKernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 34180b2c2575..9ddfb0f46b85 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -1561,7 +1561,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 { -- GitLab