Use static instead of self.

This commit is contained in:
Daniele Alessandri
2016-06-07 21:01:59 +02:00
parent 82c256422a
commit 228ccaebe3
+1 -1
View File
@@ -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;
}