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

Commit 3b671f6

Browse files
committed
Remove typehint from marshalBadControllerEvent
- Removes the tyephint for the `$exception` argument, to allow either `Exception` or `Throwable` to be provided.
1 parent a478ce7 commit 3b671f6

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
@@ -209,14 +209,14 @@ protected function marshalControllerNotFoundEvent(
209209
* @param string $controllerName
210210
* @param MvcEvent $event
211211
* @param Application $application
212-
* @param \Exception $exception
212+
* @param \Throwable|\Exception $exception
213213
* @return mixed
214214
*/
215215
protected function marshalBadControllerEvent(
216216
$controllerName,
217217
MvcEvent $event,
218218
Application $application,
219-
\Throwable $exception
219+
$exception
220220
) {
221221
$event->setName(MvcEvent::EVENT_DISPATCH_ERROR);
222222
$event->setError($application::ERROR_EXCEPTION);

0 commit comments

Comments
 (0)