diff --git a/src/WhoopsRunner.php b/src/WhoopsRunner.php index e1859bf..aade43f 100644 --- a/src/WhoopsRunner.php +++ b/src/WhoopsRunner.php @@ -17,6 +17,10 @@ public static function handle($error, ServerRequestInterface $request) $method = Run::EXCEPTION_HANDLER; $whoops = self::getWhoopsInstance($request); + + // Output is managed by the middleware pipeline + $whoops->allowQuit(false); + ob_start(); $whoops->$method($error); $response = ob_get_clean();