浏览代码

Enhancement: allows method chaining with multi-exec blocks.

Daniele Alessandri 16 年之前
父节点
当前提交
ee5e978a6c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -502,7 +502,7 @@ class MultiExecBlock {
         $response = $this->_redisClient->executeCommand($command);
         if (isset($response->queued)) {
             $this->_commands[] = $command;
-            return $response;
+            return $this;
         }
         else {
             throw new ClientException('The server did not respond with a QUEUED status reply');