浏览代码

Specify type hint in interface.

Daniele Alessandri 11 年之前
父节点
当前提交
ab9cbe712f
共有 2 个文件被更改,包括 2 次插入2 次删除
  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
      */
-    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}
      */
-    public function createCommand($commandID, $arguments = array())
+    public function createCommand($commandID, array $arguments = array())
     {
         $commandID = strtoupper($commandID);