public function onFatalError()
    {
        $error = error_get_last();
        if (null !== $error && in_array($error['type'], [E_ERROR, E_RECOVERABLE_ERROR])) {
            $this->error($error['message']);
        }
    }
public function onFatalError()
    {
        $error = error_get_last();
        if (null !== $error && in_array($error['type'], [E_ERROR, E_RECOVERABLE_ERROR])) {
            $this->error($error['message']);
        }
    }
public function onFatalError ( ) { $ error = error_get_last ( ) ; if ( null !== $ error && in_array ( $ error [ 'type' ] , [ E_ERROR , E_RECOVERABLE_ERROR ] ) ) { $ this -> error ( $ error [ 'message' ] ) ; } }
Registered function for execution on shutdown.
Logs fatal error message if exists.
Registered function for execution on shutdown . Logs fatal error message if exists .