PhpAmqpLib/Wire/IO/AbstractIO.php
protected function cleanup_error_handler()
    {
        restore_error_handler();

        if ($this->last_error !== null) {
            throw new \ErrorException(
                $this->last_error['errstr'],
                0,
                $this->last_error['errno'],
                $this->last_error['errfile'],
                $this->last_error['errline']
            );
        }
    }
protected function cleanup_error_handler()
    {
        restore_error_handler();

        if ($this->last_error !== null) {
            throw new \ErrorException(
                $this->last_error['errstr'],
                0,
                $this->last_error['errno'],
                $this->last_error['errfile'],
                $this->last_error['errline']
            );
        }
    }
protected function cleanup_error_handler ( ) { restore_error_handler ( ) ; if ( $ this -> last_error !== null ) { throw new \ ErrorException ( $ this -> last_error [ 'errstr' ] , 0 , $ this -> last_error [ 'errno' ] , $ this -> last_error [ 'errfile' ] , $ this -> last_error [ 'errline' ] ) ; } }
throws an ErrorException if an error was handled
@throws \ErrorException
throws an ErrorException if an error was handled