diff --git a/core/lib/Drupal/Core/Routing/FinalMatcherInterface.php b/core/lib/Drupal/Core/Routing/FinalMatcherInterface.php index 6d43b19831d..56804465eb3 100644 --- a/core/lib/Drupal/Core/Routing/FinalMatcherInterface.php +++ b/core/lib/Drupal/Core/Routing/FinalMatcherInterface.php @@ -18,8 +18,8 @@ interface FinalMatcherInterface { * @param Request $request * A Request object against which to match. * - * @return RouteCollection - * A RouteCollection of matched routes. + * @return array + * An array of parameters */ public function matchRequest(Request $request); } diff --git a/core/lib/Drupal/Core/Routing/NestedMatcher.php b/core/lib/Drupal/Core/Routing/NestedMatcher.php index ccfc5ecfee0..db8a429af4f 100644 --- a/core/lib/Drupal/Core/Routing/NestedMatcher.php +++ b/core/lib/Drupal/Core/Routing/NestedMatcher.php @@ -118,9 +118,9 @@ class NestedMatcher implements NestedMatcherInterface { $collection = $matcher->matchRequestPartial($request); } - $route = $this->finalMatcher->setCollection($collection)->matchRequest($request); + $attributes = $this->finalMatcher->setCollection($collection)->matchRequest($request); - return $route; + return $attributes; } /**