From 228ccaebe365564af035e78cfba2dc2340604737 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Tue, 7 Jun 2016 21:01:59 +0200 Subject: [PATCH] Use static instead of self. --- src/Command/RawCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/RawCommand.php b/src/Command/RawCommand.php index 04890797..aa3fa7a0 100644 --- a/src/Command/RawCommand.php +++ b/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; }