src/ErrorHandler.php
public function onShutdown()
    {
        $error = error_get_last();
        if ($error === null) {
            return;
        }
        if (($error['type'] & error_reporting()) === 0) {
            return;
        }
        if ($this->lastError !== null &&
            $error['message'] === $this->lastError['message'] &&
            $error['file'] === $this->lastError['file'] &&
            $error['line'] === $this->lastError['line']) {
            return;
        }
        $trace = [[
            'file' => $error['file'],
            'line' => $error['line'],
        ]];
        $exc = new Errors\Fatal($error['message'], $trace);
        $this->notifier->notify($exc);
    }
public function onShutdown()
    {
        $error = error_get_last();
        if ($error === null) {
            return;
        }
        if (($error['type'] & error_reporting()) === 0) {
            return;
        }
        if ($this->lastError !== null &&
            $error['message'] === $this->lastError['message'] &&
            $error['file'] === $this->lastError['file'] &&
            $error['line'] === $this->lastError['line']) {
            return;
        }
        $trace = [[
            'file' => $error['file'],
            'line' => $error['line'],
        ]];
        $exc = new Errors\Fatal($error['message'], $trace);
        $this->notifier->notify($exc);
    }
public function onShutdown ( ) { $ error = error_get_last ( ) ; if ( $ error === null ) { return ; } if ( ( $ error [ 'type' ] & error_reporting ( ) ) === 0 ) { return ; } if ( $ this -> lastError !== null && $ error [ 'message' ] === $ this -> lastError [ 'message' ] && $ error [ 'file' ] === $ this -> lastError [ 'file' ] && $ error [ 'line' ] === $ this -> lastError [ 'line' ] ) { return ; } $ trace = [ [ 'file' => $ error [ 'file' ] , 'line' => $ error [ 'line' ] , ] ] ; $ exc = new Errors \ Fatal ( $ error [ 'message' ] , $ trace ) ; $ this -> notifier -> notify ( $ exc ) ; }
PHP shutdown handler that notifies Airbrake about shutdown. Should be
used with register_shutdown_function.
PHP shutdown handler that notifies Airbrake about shutdown . Should be used with register_shutdown_function .