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

call with Throwable, but type-hint wants Exception #153

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DispatchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ protected function marshallControllerNotFoundEvent(
* @param string $controllerName
* @param MvcEvent $event
* @param Application $application
* @param \Exception $exception
* @param \Exception|\Throwable $exception
* @return mixed
*/
protected function marshalBadControllerEvent(
$controllerName,
MvcEvent $event,
Application $application,
\Exception $exception
$exception // @TODO clean up once PHP 7 requirement is enforced
) {
$event->setName(MvcEvent::EVENT_DISPATCH_ERROR);
$event->setError($application::ERROR_EXCEPTION);
Expand Down