src/Handlers/FatalHandler.php
protected function isFatal($lastError)
    {
        return
            !is_null($lastError) &&
            in_array($lastError['type'], self::$fatalErrors, true) &&
            // don't log uncaught exceptions as they were handled by exceptionHandler()
            !(isset($lastError['message']) &&
              strpos($lastError['message'], 'Uncaught') === 0);
    }
protected function isFatal($lastError)
    {
        return
            !is_null($lastError) &&
            in_array($lastError['type'], self::$fatalErrors, true) &&
            // don't log uncaught exceptions as they were handled by exceptionHandler()
            !(isset($lastError['message']) &&
              strpos($lastError['message'], 'Uncaught') === 0);
    }
protected function isFatal ( $ lastError ) { return ! is_null ( $ lastError ) && in_array ( $ lastError [ 'type' ] , self :: $ fatalErrors , true ) && // don't log uncaught exceptions as they were handled by exceptionHandler() ! ( isset ( $ lastError [ 'message' ] ) && strpos ( $ lastError [ 'message' ] , 'Uncaught' ) === 0 ) ; }
Check if the error triggered is indeed a fatal error.

@var array $lastError Information fetched from error_get_last().

@return bool
Check if the error triggered is indeed a fatal error .