소스 검색

Use static instead of self.

Daniele Alessandri 8 년 전
부모
커밋
228ccaebe3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Command/RawCommand.php

+ 1 - 1
src/Command/RawCommand.php

@@ -48,7 +48,7 @@ class RawCommand implements CommandInterface
     public static function create($commandID /* [ $arg, ... */)
     {
         $arguments = func_get_args();
-        $command = new self(array_shift($arguments), $arguments);
+        $command = new static(array_shift($arguments), $arguments);
 
         return $command;
     }