Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 55b04db

Browse files
committed
Merge pull request #153 from kokspflanze/fix/throwable_dispatchListener
call with Throwable, but type-hint wants Exception
2 parents f27c1a5 + 48a04ad commit 55b04db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DispatchListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ protected function marshallControllerNotFoundEvent(
235235
* @param string $controllerName
236236
* @param MvcEvent $event
237237
* @param Application $application
238-
* @param \Exception $exception
238+
* @param \Exception|\Throwable $exception
239239
* @return mixed
240240
*/
241241
protected function marshalBadControllerEvent(
242242
$controllerName,
243243
MvcEvent $event,
244244
Application $application,
245-
\Exception $exception
245+
$exception // @TODO clean up once PHP 7 requirement is enforced
246246
) {
247247
$event->setName(MvcEvent::EVENT_DISPATCH_ERROR);
248248
$event->setError($application::ERROR_EXCEPTION);

0 commit comments

Comments
 (0)