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

Commit 55ad8f4

Browse files
Maarten van Middelaarweierophinney
Maarten van Middelaar
authored andcommitted
Remove typehint from marshalControllerNotFoundEvent
- Removes the tyephint for the `$exception` argument, to allow either `Exception` or `Throwable` to be provided.
1 parent 0842115 commit 55ad8f4

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
@@ -176,15 +176,15 @@ protected function complete($return, MvcEvent $event)
176176
* @param string $controllerName
177177
* @param MvcEvent $event
178178
* @param Application $application
179-
* @param \Exception $exception
179+
* @param \Throwable|\Exception $exception
180180
* @return mixed
181181
*/
182182
protected function marshalControllerNotFoundEvent(
183183
$type,
184184
$controllerName,
185185
MvcEvent $event,
186186
Application $application,
187-
\Exception $exception = null
187+
$exception = null
188188
) {
189189
$event->setName(MvcEvent::EVENT_DISPATCH_ERROR);
190190
$event->setError($type);

0 commit comments

Comments
 (0)