Browse Source

Using push() instead of add() since the latter is php 5.5+

Jose Lorenzo Rodriguez 11 years ago
parent
commit
ed71b0f6b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Collection/Iterator/BufferedIterator.php

+ 1 - 1
src/Collection/Iterator/BufferedIterator.php

@@ -128,7 +128,7 @@ class BufferedIterator extends Collection {
 		if ($valid) {
 			$this->_current = parent::current();
 			$this->_key = parent::key();
-			$this->_buffer->add($this->_index, [
+			$this->_buffer->push([
 				'key' => $this->_key,
 				'value' => $this->_current
 			]);