src/IteratorIteratorTrait.php
protected function _advanceTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only advance an Iterator tracker'), null, null, $tracker);
        }

        $tracker->next();
    }
protected function _advanceTracker($tracker)
    {
        if (!($tracker instanceof Iterator)) {
            throw $this->_createInvalidArgumentException($this->__('Can only advance an Iterator tracker'), null, null, $tracker);
        }

        $tracker->next();
    }
protected function _advanceTracker ( $ tracker ) { if ( ! ( $ tracker instanceof Iterator ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Can only advance an Iterator tracker' ) , null , null , $ tracker ) ; } $ tracker -> next ( ) ; }
Advances the iterator forward.

@since [*next-version*]

@param Iterator $tracker The iterator used to track the loop.

@throws InvalidArgumentException If problem advancing iterator.
Advances the iterator forward .