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); }