diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bd3dcb..9f9f3e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Middleware/ErrorHandler.php b/src/Middleware/ErrorHandler.php index f94c677..5832806 100644 --- a/src/Middleware/ErrorHandler.php +++ b/src/Middleware/ErrorHandler.php @@ -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); }