Sentry/ErrorHandler.php
function registerErrorHandler($call_existing = true, $error_types = null)
    {
        if ($error_types !== null) {
            $this->error_types = $error_types;
        }
        $this->old_error_handler = set_error_handler(array($this, 'handleError'), E_ALL);
        $this->call_existing_error_handler = $call_existing;
        return $this;
    }
function registerErrorHandler($call_existing = true, $error_types = null)
    {
        if ($error_types !== null) {
            $this->error_types = $error_types;
        }
        $this->old_error_handler = set_error_handler(array($this, 'handleError'), E_ALL);
        $this->call_existing_error_handler = $call_existing;
        return $this;
    }
function registerErrorHandler ( $ call_existing = true , $ error_types = null ) { if ( $ error_types !== null ) { $ this -> error_types = $ error_types ; } $ this -> old_error_handler = set_error_handler ( array ( $ this , 'handleError' ) , E_ALL ) ; $ this -> call_existing_error_handler = $ call_existing ; return $ this ; }
Register a handler which will intercept standard PHP errors and report them to the
associated Sentry client.

@param bool $call_existing Call any existing errors handlers after processing
this instance.
@param array $error_types All error types that should be sent.
@return $this
Register a handler which will intercept standard PHP errors and report them to the associated Sentry client .