瀏覽代碼

Removed a wrong type-check in Predis\Client::setupConnection that was breaking the initialization of a cluster of connections when using an array of URI strings as parameters.

Daniele Alessandri 15 年之前
父節點
當前提交
6814845e3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -50,7 +50,7 @@ class Client {
             throw new ClientException('Invalid parameters type (array or string expected)');
         }
 
-        if (is_array($parameters) && isset($parameters[0]) && is_array($parameters[0])) {
+        if (is_array($parameters) && isset($parameters[0])) {
             $cluster = new ConnectionCluster();
             foreach ($parameters as $shardParams) {
                 $cluster->add($this->createConnection($shardParams));