Эх сурвалжийг харах

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

Daniele Alessandri 15 жил өмнө
parent
commit
3ccbff4277
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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) {