src/Debugger/Debugger.php
public static function shutdownHandler(): void
    {
        if (!self::$reserved) {
            return;
        }

        $error = \error_get_last();
        if (\in_array($error['type'],
            [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE, E_RECOVERABLE_ERROR, E_USER_ERROR], true
        )) {
            self::exceptionHandler(
                Helpers::fixStack(
                    new \ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line'])
                ), false
            );
        }
    }
public static function shutdownHandler(): void
    {
        if (!self::$reserved) {
            return;
        }

        $error = \error_get_last();
        if (\in_array($error['type'],
            [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE, E_RECOVERABLE_ERROR, E_USER_ERROR], true
        )) {
            self::exceptionHandler(
                Helpers::fixStack(
                    new \ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line'])
                ), false
            );
        }
    }
public static function shutdownHandler ( ) : void { if ( ! self :: $ reserved ) { return ; } $ error = \ error_get_last ( ) ; if ( \ in_array ( $ error [ 'type' ] , [ E_ERROR , E_CORE_ERROR , E_COMPILE_ERROR , E_PARSE , E_RECOVERABLE_ERROR , E_USER_ERROR ] , true ) ) { self :: exceptionHandler ( Helpers :: fixStack ( new \ ErrorException ( $ error [ 'message' ] , 0 , $ error [ 'type' ] , $ error [ 'file' ] , $ error [ 'line' ] ) ) , false ) ; } }
Shutdown handler to catch fatal errors and execute of the planned activities.

@return void
@internal
Shutdown handler to catch fatal errors and execute of the planned activities .