diff --git a/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php b/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php index ab45cf3..4b9657d 100644 --- a/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php +++ b/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php @@ -38,7 +38,7 @@ class HandlerStackConfigurator { * * @var string[] */ - protected $middlewareIds; + protected $middlewareIds = []; /** * The service container. diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc index 42d0e8d..befe914 100644 --- a/core/modules/locale/locale.batch.inc +++ b/core/modules/locale/locale.batch.inc @@ -239,8 +239,8 @@ function locale_translation_http_check($uri) { try { $actual_uri = NULL; $response = \Drupal::httpClientFactory()->fromOptions(['allow_redirects' => [ - 'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) { - $actual_uri = (string) $uri; + 'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) { + $actual_uri = (string) $request_uri; }]])->head($uri); $result = array();