diff --git a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php index b8d8ea2817f43a36ca037190417db64c1501681c..b13006ca3f058e0b909181ddaf1b035092dade59 100644 --- a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php +++ b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php @@ -147,7 +147,7 @@ public function generate($name, $parameters = [], $referenceType = self::ABSOLUT * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException * Thrown when access checking failed. */ - public function match($pathinfo) { + public function match($pathinfo): array { return $this->matchRequest(Request::create($pathinfo)); } diff --git a/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php b/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php index 3d3047ab120f544d15a155909dacb34a51643c1b..a48a9063e59af3d6df4a8d264803b8facfc9370c 100644 --- a/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php +++ b/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php @@ -30,6 +30,6 @@ public function matchRequest(Request $request): array; * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException * Thrown when $access_check is enabled and access checking failed. */ - public function match($pathinfo); + public function match($pathinfo): array; } diff --git a/core/lib/Drupal/Core/Routing/Router.php b/core/lib/Drupal/Core/Routing/Router.php index cb3e5586f90cce21a7d5ffd164bf4d80a9d2d007..87324a68a5b192766d044346485a1c131999861f 100644 --- a/core/lib/Drupal/Core/Routing/Router.php +++ b/core/lib/Drupal/Core/Routing/Router.php @@ -97,7 +97,7 @@ public function addRouteEnhancer(EnhancerInterface $route_enhancer) { /** * {@inheritdoc} */ - public function match($pathinfo) { + public function match($pathinfo): array { $request = Request::create($pathinfo); return $this->matchRequest($request);