/** * Calling `next` when iterator is not in a valid state is harmless. * * @link http://php.net/manual/en/iterator.next.php * @return void */ function next() { parent::next(); $this->i++; }