protected function providePhpErrorResponse(\Error $e): Response
    {
        $responder = $this->provideResponder();
        return $responder->error([
            'Message' => $e->getMessage(),
            'File' => $e->getFile(),
            'Line' => $e->getLine(),
        ]);
    }
protected function providePhpErrorResponse(\Error $e): Response
    {
        $responder = $this->provideResponder();
        return $responder->error([
            'Message' => $e->getMessage(),
            'File' => $e->getFile(),
            'Line' => $e->getLine(),
        ]);
    }
protected function providePhpErrorResponse ( \ Error $ e ) : Response { $ responder = $ this -> provideResponder ( ) ; return $ responder -> error ( [ 'Message' => $ e -> getMessage ( ) , 'File' => $ e -> getFile ( ) , 'Line' => $ e -> getLine ( ) , ] ) ; }
Responds to client in case of a PHP error.

@param \Error $e
@return Response
Responds to client in case of a PHP error .