From 3231d473caa6a342c5d93a32d11850ab53693afa Mon Sep 17 00:00:00 2001 From: Maarten van Middelaar Date: Sun, 17 Jul 2016 01:58:18 +0200 Subject: [PATCH] Remove typehint from marshalControllerNotFoundEvent - Removes the tyephint for the `$exception` argument, to allow either `Exception` or `Throwable` to be provided. --- src/DispatchListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DispatchListener.php b/src/DispatchListener.php index 7e9076a51..4dbf0d78e 100644 --- a/src/DispatchListener.php +++ b/src/DispatchListener.php @@ -176,7 +176,7 @@ protected function complete($return, MvcEvent $event) * @param string $controllerName * @param MvcEvent $event * @param Application $application - * @param \Exception $exception + * @param \Throwable|\Exception $exception * @return mixed */ protected function marshalControllerNotFoundEvent( @@ -184,7 +184,7 @@ protected function marshalControllerNotFoundEvent( $controllerName, MvcEvent $event, Application $application, - \Exception $exception = null + $exception = null ) { $event->setName(MvcEvent::EVENT_DISPATCH_ERROR); $event->setError($type);