diff --git a/core/modules/system/src/PathBasedBreadcrumbBuilder.php b/core/modules/system/src/PathBasedBreadcrumbBuilder.php index 64985ed1ed9219d7ae4481a94b6d5813928526e5..749dad24f7c9f78a118a3d43b9177b1afcb889f4 100644 --- a/core/modules/system/src/PathBasedBreadcrumbBuilder.php +++ b/core/modules/system/src/PathBasedBreadcrumbBuilder.php @@ -226,19 +226,7 @@ protected function getRequestForPath($path, array $exclude) { $request->attributes->add($this->router->matchRequest($request)); return $request; } - catch (ParamNotConvertedException $e) { - return NULL; - } - catch (ResourceNotFoundException $e) { - return NULL; - } - catch (MethodNotAllowedException $e) { - return NULL; - } - catch (AccessDeniedHttpException $e) { - return NULL; - } - catch (NotFoundHttpException $e) { + catch (ParamNotConvertedException | ResourceNotFoundException | MethodNotAllowedException | AccessDeniedHttpException | NotFoundHttpException $e) { return NULL; } }