Browse Source

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

Daniele Alessandri 15 năm trước cách đây
mục cha
commit
3ccbff4277
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -631,7 +631,7 @@ abstract class RedisServerProfile {
 
     protected abstract function getSupportedCommands();
 
-    public function createCommandInstance($method, $arguments) {
+    public function createCommandInstance($method, $arguments = array()) {
         $commandClass = $this->_registeredCommands[$method];
 
         if ($commandClass === null) {