@@ -60,6 +60,9 @@ |
||
60 | 60 | return parent::offsetSet($offset, $value); |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param integer $until |
|
65 | + */ |
|
63 | 66 | public function collectRest($until = null) |
64 | 67 | { |
65 | 68 | if ($this->finished) { |
@@ -82,8 +82,7 @@ |
||
82 | 82 | $current = ($this->flags & self::CLONE_CURRENT) && is_object($current) ? clone $current : $current; |
83 | 83 | parent::offsetSet($key, $current); |
84 | 84 | $this->uncachedIterator->next(); |
85 | - } |
|
86 | - else { |
|
85 | + } else { |
|
87 | 86 | $this->finished = true; |
88 | 87 | } |
89 | 88 | } |