public function handle()
    {
        $error = $this->lastErrorProvider->get();

        if ($error === null) {
            return;
        }

        if (!($error['type'] & (E_ERROR | E_USER_ERROR))) {
            return;
        }

        $this->logging->log(
            'Script stopped due to FATAL error in ' . $error['file'] .
            ' in line ' . $error['line'] .
            ' with message: ' . $error['message']
        );
    }
public function handle()
    {
        $error = $this->lastErrorProvider->get();

        if ($error === null) {
            return;
        }

        if (!($error['type'] & (E_ERROR | E_USER_ERROR))) {
            return;
        }

        $this->logging->log(
            'Script stopped due to FATAL error in ' . $error['file'] .
            ' in line ' . $error['line'] .
            ' with message: ' . $error['message']
        );
    }
public function handle ( ) { $ error = $ this -> lastErrorProvider -> get ( ) ; if ( $ error === null ) { return ; } if ( ! ( $ error [ 'type' ] & ( E_ERROR | E_USER_ERROR ) ) ) { return ; } $ this -> logging -> log ( 'Script stopped due to FATAL error in ' . $ error [ 'file' ] . ' in line ' . $ error [ 'line' ] . ' with message: ' . $ error [ 'message' ] ) ; }
Handles errors upon shutdown of PHP.

This will look up if a fatal error caused PHP to shut down. If so, the error will be logged to the error log.
Handles errors upon shutdown of PHP .