public function handleError($error, $code, $path, $source, $parameters, $options)
    {
        /* @var \Throwable $error */
        $exception = $options['debug']
            ? $this->getDebuggedException($error, $code, $source, $path, $parameters, $options)
            : $error;

        $handler = $options['error_handler'];
        if (!$handler) {
            // @codeCoverageIgnoreStart
            if ($options['debug'] && $options['exit_on_error']) {
                if ($options['html_error']) {
                    echo $exception->getMessage();
                    exit(1);
                }
                if (!function_exists('xdebug_is_enabled') || !xdebug_is_enabled()) {
                    echo $exception->getMessage()."\n".$exception->getTraceAsString();
                    exit(1);
                }
            }
            // @codeCoverageIgnoreEnd
            throw $exception;
        }

        $handler($exception);
    }
public function handleError($error, $code, $path, $source, $parameters, $options)
    {
        /* @var \Throwable $error */
        $exception = $options['debug']
            ? $this->getDebuggedException($error, $code, $source, $path, $parameters, $options)
            : $error;

        $handler = $options['error_handler'];
        if (!$handler) {
            // @codeCoverageIgnoreStart
            if ($options['debug'] && $options['exit_on_error']) {
                if ($options['html_error']) {
                    echo $exception->getMessage();
                    exit(1);
                }
                if (!function_exists('xdebug_is_enabled') || !xdebug_is_enabled()) {
                    echo $exception->getMessage()."\n".$exception->getTraceAsString();
                    exit(1);
                }
            }
            // @codeCoverageIgnoreEnd
            throw $exception;
        }

        $handler($exception);
    }
public function handleError ( $ error , $ code , $ path , $ source , $ parameters , $ options ) { /* @var \Throwable $error */ $ exception = $ options [ 'debug' ] ? $ this -> getDebuggedException ( $ error , $ code , $ source , $ path , $ parameters , $ options ) : $ error ; $ handler = $ options [ 'error_handler' ] ; if ( ! $ handler ) { // @codeCoverageIgnoreStart if ( $ options [ 'debug' ] && $ options [ 'exit_on_error' ] ) { if ( $ options [ 'html_error' ] ) { echo $ exception -> getMessage ( ) ; exit ( 1 ) ; } if ( ! function_exists ( 'xdebug_is_enabled' ) || ! xdebug_is_enabled ( ) ) { echo $ exception -> getMessage ( ) . "\n" . $ exception -> getTraceAsString ( ) ; exit ( 1 ) ; } } // @codeCoverageIgnoreEnd throw $ exception ; } $ handler ( $ exception ) ; }
Handle error occurred in compiled PHP.

@param \Throwable $error
@param int        $code
@param string     $path
@param string     $source
@param array      $parameters
@param array      $options

@throws RendererException
@throws \Throwable
Handle error occurred in compiled PHP .