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

Commit

Permalink
Merge branch 'hotfix/177' into develop
Browse files Browse the repository at this point in the history
Forward port #177
  • Loading branch information
weierophinney committed Jul 24, 2018
2 parents f22af98 + f8c19ac commit 3d0e7d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ details.

### Removed

- Nothing.
- [#177](https://github.com/zendframework/zend-stratigility/pull/177) removes a conditional from `Zend\Stratigility\Middleware\ErrorHandler` that can
never be reached.

### Fixed

Expand Down
4 changes: 0 additions & 4 deletions src/Middleware/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface

try {
$response = $handler->handle($request);

if (! $response instanceof ResponseInterface) {
throw new MissingResponseException('Application did not return a response');
}
} catch (Throwable $e) {
$response = $this->handleThrowable($e, $request);
}
Expand Down

0 comments on commit 3d0e7d6

Please sign in to comment.