public function fatalHandler() : void
    {
        $errors = error_get_last();
        if (is_array($errors)) {
            $this->setError(
               (int) $errors['type'],
                (string) $errors['message'],
                (string) $errors['file'],
                (int) $errors['line'],
                'FatalErrorException'
            );

            View::render('500.php', (object) $this->errors);

            return;
        }
    }
public function fatalHandler() : void
    {
        $errors = error_get_last();
        if (is_array($errors)) {
            $this->setError(
               (int) $errors['type'],
                (string) $errors['message'],
                (string) $errors['file'],
                (int) $errors['line'],
                'FatalErrorException'
            );

            View::render('500.php', (object) $this->errors);

            return;
        }
    }
public function fatalHandler ( ) : void { $ errors = error_get_last ( ) ; if ( is_array ( $ errors ) ) { $ this -> setError ( ( int ) $ errors [ 'type' ] , ( string ) $ errors [ 'message' ] , ( string ) $ errors [ 'file' ] , ( int ) $ errors [ 'line' ] , 'FatalErrorException' ) ; View :: render ( '500.php' , ( object ) $ this -> errors ) ; return ; } }
error handler method.

@return void
error handler method .