瀏覽代碼

The second parameter for Client::createCommandInstance is now optional.

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

+ 1 - 1
lib/Predis.php

@@ -92,7 +92,7 @@ class Client {
         return $this->executeCommand($command);
     }
 
-    public function createCommandInstance($method, $arguments) {
+    public function createCommandInstance($method, $arguments = array()) {
         $commandClass = $this->_registeredCommands[$method];
 
         if ($commandClass === null) {