瀏覽代碼

Fixed E_STRICT notices that were being raised by PHP due to a slightly different method signature used for two command classes.

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

+ 2 - 2
lib/Predis.php

@@ -1276,7 +1276,7 @@ class FlushAll extends \Predis\InlineCommand {
 /* sorting */
 /* sorting */
 class Sort extends \Predis\InlineCommand {
 class Sort extends \Predis\InlineCommand {
     public function getCommandId() { return 'SORT'; }
     public function getCommandId() { return 'SORT'; }
-    public function filterArguments($arguments) {
+    public function filterArguments(Array $arguments) {
         if (count($arguments) === 1) {
         if (count($arguments) === 1) {
             return $arguments;
             return $arguments;
         }
         }
@@ -1358,7 +1358,7 @@ class Info extends \Predis\InlineCommand {
 class SlaveOf extends \Predis\InlineCommand {
 class SlaveOf extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SLAVEOF'; }
     public function getCommandId() { return 'SLAVEOF'; }
-    public function filterArguments($arguments) {
+    public function filterArguments(Array $arguments) {
         return count($arguments) === 0 ? array('NO ONE') : $arguments;
         return count($arguments) === 0 ? array('NO ONE') : $arguments;
     }
     }
 }
 }