Browse Source

Use static instead of self.

Daniele Alessandri 8 năm trước cách đây
mục cha
commit
228ccaebe3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }