src/ErrorInterceptor.php
public static function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        if (count(self::$interceptor_stack) > 0)
        {
            $interceptor = end(self::$interceptor_stack);
            if ($interceptor->intercept($errno, $errstr, $errfile, $errline, $errcontext))
            {
                return;
            }
        }

        throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
    }
public static function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        if (count(self::$interceptor_stack) > 0)
        {
            $interceptor = end(self::$interceptor_stack);
            if ($interceptor->intercept($errno, $errstr, $errfile, $errline, $errcontext))
            {
                return;
            }
        }

        throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
    }
public static function errorHandler ( $ errno , $ errstr , $ errfile , $ errline , $ errcontext ) { if ( count ( self :: $ interceptor_stack ) > 0 ) { $ interceptor = end ( self :: $ interceptor_stack ) ; if ( $ interceptor -> intercept ( $ errno , $ errstr , $ errfile , $ errline , $ errcontext ) ) { return ; } } throw new ErrorException ( $ errstr , 0 , $ errno , $ errfile , $ errline ) ; }
Catch all PHP errors, notices and throw them as an exception instead. If
an interceptor was registered, the message is passed to the interceptor instead.

@param int $errno Error number
@param string $errstr Error description
@param string $errfile The file where the error occured
@param int $errline The line where the error occured
@param mixed $errcontext Erro context
Catch all PHP errors notices and throw them as an exception instead . If an interceptor was registered the message is passed to the interceptor instead .