From ed71b0f6b44b44008ed35d06d453f7719dc0a8d7 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Mon, 22 Sep 2014 11:51:47 +0200 Subject: [PATCH] Using push() instead of add() since the latter is php 5.5+ --- src/Collection/Iterator/BufferedIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collection/Iterator/BufferedIterator.php b/src/Collection/Iterator/BufferedIterator.php index bfef399dd57..0c8569256ba 100644 --- a/src/Collection/Iterator/BufferedIterator.php +++ b/src/Collection/Iterator/BufferedIterator.php @@ -128,7 +128,7 @@ public function valid() { if ($valid) { $this->_current = parent::current(); $this->_key = parent::key(); - $this->_buffer->add($this->_index, [ + $this->_buffer->push([ 'key' => $this->_key, 'value' => $this->_current ]);