public function shutdown()
    {
        $error = error_get_last();
        if ($error !== null ) {
            $this->setMessage($error['message']);
            $this->setStatusCode(500, $error['message']);
            $this->outputBody();
            exit();
        }
    }
public function shutdown()
    {
        $error = error_get_last();
        if ($error !== null ) {
            $this->setMessage($error['message']);
            $this->setStatusCode(500, $error['message']);
            $this->outputBody();
            exit();
        }
    }
public function shutdown ( ) { $ error = error_get_last ( ) ; if ( $ error !== null ) { $ this -> setMessage ( $ error [ 'message' ] ) ; $ this -> setStatusCode ( 500 , $ error [ 'message' ] ) ; $ this -> outputBody ( ) ; exit ( ) ; } }
Catches fatal PHP error and output something useful for the front end
Catches fatal PHP error and output something useful for the front end