src/Connector/ConnectionContext.php
private static function invokeHandler(FetchExceptionHandler &$handler, \Exception $exception, &$cloned)
    {
        if (!$cloned && !$handler instanceof StatelessFetchExceptionHandler) {
            $handler = clone $handler;
            $handler->initialize();
            $cloned = true;
        }

        $handler($exception);
    }
private static function invokeHandler(FetchExceptionHandler &$handler, \Exception $exception, &$cloned)
    {
        if (!$cloned && !$handler instanceof StatelessFetchExceptionHandler) {
            $handler = clone $handler;
            $handler->initialize();
            $cloned = true;
        }

        $handler($exception);
    }
private static function invokeHandler ( FetchExceptionHandler & $ handler , \ Exception $ exception , & $ cloned ) { if ( ! $ cloned && ! $ handler instanceof StatelessFetchExceptionHandler ) { $ handler = clone $ handler ; $ handler -> initialize ( ) ; $ cloned = true ; } $ handler ( $ exception ) ; }
Invokes the specified fetch exception handler, cloning it if required.

@param FetchExceptionHandler $handler Fetch exception handler.
@param \Exception $exception Exception to pass to the handler.
@param bool $cloned False if handler requires cloning, true if handler has already been cloned.
Invokes the specified fetch exception handler cloning it if required .