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 e8cdbb6923)
merge-requests/3575/head
Lee Rowlands 2023-02-24 07:31:23 +10:00
parent 9f7a8d2e2c
commit dce8ca6584
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
1 changed files with 1 additions and 1 deletions

View File

@ -1557,7 +1557,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
* @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 {