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

Commit 4fcaa6d

Browse files
committed
Merge branch 'hotfix/161'
Close #161
2 parents af7534c + b18a691 commit 4fcaa6d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#161](https://github.com/zendframework/zend-mvc/pull/161) fixes the
22+
`DispatchListener::marshalBadControllerEvent()` method to allow either
23+
`Throwable` or `Exception` types for the `$exception` argument.
2224

2325
## 3.0.1 - 2016-06-23
2426

src/DispatchListener.php

+2-2
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-
\Exception $exception
219+
$exception
220220
) {
221221
$event->setName(MvcEvent::EVENT_DISPATCH_ERROR);
222222
$event->setError($application::ERROR_EXCEPTION);

0 commit comments

Comments
 (0)