Browse Source

Specify type hint in interface.

Daniele Alessandri 11 years ago
parent
commit
ab9cbe712f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/Profile/ProfileInterface.php
  2. 1 1
      src/Profile/RedisProfile.php

+ 1 - 1
src/Profile/ProfileInterface.php

@@ -55,5 +55,5 @@ interface ProfileInterface
      *
      *
      * @return CommandInterface
      * @return CommandInterface
      */
      */
-    public function createCommand($commandID, $arguments = array());
+    public function createCommand($commandID, array $arguments = array());
 }
 }

+ 1 - 1
src/Profile/RedisProfile.php

@@ -82,7 +82,7 @@ abstract class RedisProfile implements ProfileInterface
     /**
     /**
      * {@inheritdoc}
      * {@inheritdoc}
      */
      */
-    public function createCommand($commandID, $arguments = array())
+    public function createCommand($commandID, array $arguments = array())
     {
     {
         $commandID = strtoupper($commandID);
         $commandID = strtoupper($commandID);