diff --git a/src/PathautoGenerator.php b/src/PathautoGenerator.php index 5771147abdbf736e8c25969f5b9f64677365812d..6bdede313347c3900cdfb2901933cd1ecaca0ad8 100644 --- a/src/PathautoGenerator.php +++ b/src/PathautoGenerator.php @@ -178,14 +178,7 @@ class PathautoGenerator implements PathautoGeneratorInterface { try { $internalPath = $entity->toUrl()->getInternalPath(); } - // @todo convert to multi-exception handling in PHP 7.1. - catch (EntityMalformedException $exception) { - return NULL; - } - catch (UndefinedLinkTemplateException $exception) { - return NULL; - } - catch (\UnexpectedValueException $exception) { + catch (EntityMalformedException | UndefinedLinkTemplateException | \UnexpectedValueException) { return NULL; }