src/Builder.php
protected function showFatalError()
    {
        $error = error_get_last();
        switch ($error['type']) {
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
            case E_CORE_WARNING:
            case E_COMPILE_WARNING:
            case E_PARSE:
                ob_clean();
                echo $this->htmlReport([
                    'mode' => 'fatal',
                    'error' => 'Error while building pages',
                    'summary' => $this->summary,
                    'errorTitle' => 'Failed to build page <code>' . $this->lastpage . '</code>',
                    'errorDetails' => $error['message'] . "<br>\n"
                        . 'In ' . $error['file'] . ', line ' . $error['line']
                ]);
        }
    }
protected function showFatalError()
    {
        $error = error_get_last();
        switch ($error['type']) {
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
            case E_CORE_WARNING:
            case E_COMPILE_WARNING:
            case E_PARSE:
                ob_clean();
                echo $this->htmlReport([
                    'mode' => 'fatal',
                    'error' => 'Error while building pages',
                    'summary' => $this->summary,
                    'errorTitle' => 'Failed to build page <code>' . $this->lastpage . '</code>',
                    'errorDetails' => $error['message'] . "<br>\n"
                        . 'In ' . $error['file'] . ', line ' . $error['line']
                ]);
        }
    }
protected function showFatalError ( ) { $ error = error_get_last ( ) ; switch ( $ error [ 'type' ] ) { case E_ERROR : case E_CORE_ERROR : case E_COMPILE_ERROR : case E_USER_ERROR : case E_RECOVERABLE_ERROR : case E_CORE_WARNING : case E_COMPILE_WARNING : case E_PARSE : ob_clean ( ) ; echo $ this -> htmlReport ( [ 'mode' => 'fatal' , 'error' => 'Error while building pages' , 'summary' => $ this -> summary , 'errorTitle' => 'Failed to build page <code>' . $ this -> lastpage . '</code>' , 'errorDetails' => $ error [ 'message' ] . "<br>\n" . 'In ' . $ error [ 'file' ] . ', line ' . $ error [ 'line' ] ] ) ; } }
Try to render any PHP Fatal Error in our own template
@return bool
Try to render any PHP Fatal Error in our own template