소스 검색

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

Daniele Alessandri 16 년 전
부모
커밋
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) {