src/ResponseErrorAbstract.php
protected function getOutputHandler(
        ServerRequestInterface $request,
        ResponseInterface $response,
        \Throwable $e
    ) : Run {
        $whoops = new Run();
        // disable write to output
        $whoops->writeToOutput(false);
        // push handler by Type
        switch ($this->determineOutputType()) {
            case self::TYPE_JSON:
                $whoops->pushHandler([$this, 'renderJson']);
                break;
            case self::TYPE_XML:
                $whoops->pushHandler([$this, 'renderXML']);
                break;
            case self::TYPE_PLAIN:
                $whoops->pushHandler([$this, 'renderPlainText']);
                break;
            default:
                $whoops->pushHandler([$this, 'renderHtml']);
        }

        return $whoops;
    }
protected function getOutputHandler(
        ServerRequestInterface $request,
        ResponseInterface $response,
        \Throwable $e
    ) : Run {
        $whoops = new Run();
        // disable write to output
        $whoops->writeToOutput(false);
        // push handler by Type
        switch ($this->determineOutputType()) {
            case self::TYPE_JSON:
                $whoops->pushHandler([$this, 'renderJson']);
                break;
            case self::TYPE_XML:
                $whoops->pushHandler([$this, 'renderXML']);
                break;
            case self::TYPE_PLAIN:
                $whoops->pushHandler([$this, 'renderPlainText']);
                break;
            default:
                $whoops->pushHandler([$this, 'renderHtml']);
        }

        return $whoops;
    }
protected function getOutputHandler ( ServerRequestInterface $ request , ResponseInterface $ response , \ Throwable $ e ) : Run { $ whoops = new Run ( ) ; // disable write to output $ whoops -> writeToOutput ( false ) ; // push handler by Type switch ( $ this -> determineOutputType ( ) ) { case self :: TYPE_JSON : $ whoops -> pushHandler ( [ $ this , 'renderJson' ] ) ; break ; case self :: TYPE_XML : $ whoops -> pushHandler ( [ $ this , 'renderXML' ] ) ; break ; case self :: TYPE_PLAIN : $ whoops -> pushHandler ( [ $ this , 'renderPlainText' ] ) ; break ; default : $ whoops -> pushHandler ( [ $ this , 'renderHtml' ] ) ; } return $ whoops ; }
Parameter just for reference

@param ServerRequestInterface $request
@param ResponseInterface $response
@param \Throwable $e

@return Run
Parameter just for reference