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

Commit

Permalink
The handle method have a return type of ResponseInterface, so it …
Browse files Browse the repository at this point in the history
…was never be executed.
  • Loading branch information
Moln committed Jul 21, 2018
1 parent 52e2ab8 commit 25a4eb3
Showing 1 changed file with 0 additions and 4 deletions.
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 25a4eb3

Please sign in to comment.