Skip to content

Commit 4050eb3

Browse files
committed
Merge pull request #55 from im-bart/hotfix/handle_throwable
Handle PHP 7+ Throwable (also before defaulting to status 406) Conflicts: src/Listener/ApiProblemListener.php
2 parents 0fb7cd2 + 9f7bf79 commit 4050eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listener/RenderErrorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function onRenderError(MvcEvent $e)
6464
$details = false;
6565

6666
$exception = $e->getParam('exception');
67-
if ($exception instanceof \Exception
67+
if (($exception instanceof \Exception || $exception instanceof \Throwable)
6868
&& ! $exception instanceof ViewExceptionInterface
6969
) {
7070
$code = $exception->getCode();

0 commit comments

Comments
 (0)