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

Commit 6de7fbc

Browse files
committed
Merge branch 'hotfix/161' into develop
Forward port #161
2 parents b7e35f7 + b18a691 commit 6de7fbc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ All notable changes to this project will be documented in this file, in reverse
3636

3737
### Fixed
3838

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

4143
## 3.0.1 - 2016-06-23
4244

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

0 commit comments

Comments
 (0)