mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Promote multibulk response iterators as Predis response objects.
Multibulk response iterators will not be passed anymore to the response parser method of the command that generated the response. Pipeline and transaction abstractions still consume interators returned as response items.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Predis\Command;
|
||||
|
||||
use Predis\Iterator\MultiBulkResponseTuple;
|
||||
|
||||
/**
|
||||
* @link http://redis.io/commands/zrange
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
@@ -90,10 +88,6 @@ class ZSetRange extends PrefixableCommand
|
||||
public function parseResponse($data)
|
||||
{
|
||||
if ($this->withScores()) {
|
||||
if ($data instanceof \Iterator) {
|
||||
return new MultiBulkResponseTuple($data);
|
||||
}
|
||||
|
||||
$result = array();
|
||||
|
||||
for ($i = 0; $i < count($data); $i++) {
|
||||
|
||||
Reference in New Issue
Block a user