Переглянути джерело

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