src/Middleware/Middleware/WhoopsMiddleware.php
public function process(
        RequestInterface $request,
        ResponseInterface $response,
        DelegateInterface $next = null
    ) {
        try {
            if ($next) {
                return $next->next($request, $response);
            }
            return $response;
        } catch (\Exception $e) {
            return WhoopsRunner::handle($e, $request);
        }
    }
public function process(
        RequestInterface $request,
        ResponseInterface $response,
        DelegateInterface $next = null
    ) {
        try {
            if ($next) {
                return $next->next($request, $response);
            }
            return $response;
        } catch (\Exception $e) {
            return WhoopsRunner::handle($e, $request);
        }
    }
public function process ( RequestInterface $ request , ResponseInterface $ response , DelegateInterface $ next = null ) { try { if ( $ next ) { return $ next -> next ( $ request , $ response ) ; } return $ response ; } catch ( \ Exception $ e ) { return WhoopsRunner :: handle ( $ e , $ request ) ; } }
Should be the very first middleware in the queue

{@inheritDoc}
Should be the very first middleware in the queue