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

Commit 586ee7f

Browse files
committed
Merge branch 'hotfix/187' into develop
Forward port #187
2 parents 2f9cd6c + b62a6ed commit 586ee7f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ All notable changes to this project will be documented in this file, in reverse
3939
- [#184](https://github.com/zendframework/zend-mvc/pull/184) provides a
4040
performance optimization for `DELETE` requests to `AbstractRestfulController`
4141
instances.
42+
- [#187](https://github.com/zendframework/zend-mvc/pull/187) removes a typehint
43+
for `Exception` from an argument in
44+
`DispatchListener::marshalControllerNotFoundEvent()`, allowing it to be used
45+
with PHP 7 `Throwable` instances.
4246

4347
## 3.0.2 - 2016-06-30
4448

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)