From d2e915504a6834fc09915b0efb1a72a249c41129 Mon Sep 17 00:00:00 2001 From: Lee Rowlands <lee.rowlands@previousnext.com.au> Date: Sat, 18 Sep 2021 11:12:54 +1000 Subject: [PATCH] Issue #3232888 by daffie: [Symfony 6] Add "array" type hint to the method Drupal\Core\Routing\UrlMatcher::getAttributes() --- core/lib/Drupal/Core/Routing/UrlMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Routing/UrlMatcher.php b/core/lib/Drupal/Core/Routing/UrlMatcher.php index bc9a63f5f6ee..b6852824e143 100644 --- a/core/lib/Drupal/Core/Routing/UrlMatcher.php +++ b/core/lib/Drupal/Core/Routing/UrlMatcher.php @@ -45,7 +45,7 @@ public function finalMatch(RouteCollection $collection, Request $request) { /** * {@inheritdoc} */ - protected function getAttributes(Route $route, $name, array $attributes) { + protected function getAttributes(Route $route, $name, array $attributes): array { if ($route instanceof RouteObjectInterface && is_string($route->getRouteKey())) { $name = $route->getRouteKey(); } -- GitLab