diff --git a/core/lib/Drupal/Core/Routing/Router.php b/core/lib/Drupal/Core/Routing/Router.php index f2ff54f..dc724bc 100644 --- a/core/lib/Drupal/Core/Routing/Router.php +++ b/core/lib/Drupal/Core/Routing/Router.php @@ -167,13 +167,8 @@ public function matchRequest(Request $request) { * @param \Symfony\Component\Routing\RouteCollection $routes * The set of routes. * - * @return array - * An array of parameters - * - * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException - * If the resource could not be found. - * @throws \Symfony\Component\Routing\Exception\MethodNotAllowedException - * If the resource was found but the request method is not allowed. + * @return array|null + * An array of parameters. NULL when there is no match. */ protected function matchCollection($pathinfo, RouteCollection $routes) { // Try a case-sensitive match. @@ -203,11 +198,6 @@ protected function matchCollection($pathinfo, RouteCollection $routes) { * @return array|null * An array of parameters. NULL when there is no match. * - * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException - * If the resource could not be found. - * @throws \Symfony\Component\Routing\Exception\MethodNotAllowedException - * If the resource was found but the request method is not allowed. - * * @see \Symfony\Component\Routing\Matcher\UrlMatcher::matchCollection() * @see \Drupal\Core\Routing\RouteProvider::getRoutesByPath() */