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

merge-requests/3532/head
Lee Rowlands 2023-02-24 07:31:23 +10:00
parent f47b62e0dd
commit e8cdbb6923
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
1 changed files with 1 additions and 1 deletions

View File

@ -1561,7 +1561,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 {