소스 검색

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);