Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  Fix CS
  • Loading branch information
fabpot committed Feb 4, 2020
2 parents a090600 + 6e3cf40 commit 1a8d20d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Command
*/
public static function getDefaultName()
{
$class = \get_called_class();
$class = static::class;
$r = new \ReflectionProperty($class, 'defaultName');

return $class === $r->class ? static::$defaultName : null;
Expand Down Expand Up @@ -344,7 +344,7 @@ public function setDefinition($definition)
public function getDefinition()
{
if (null === $this->definition) {
throw new LogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($this)));
throw new LogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', static::class));
}

return $this->definition;
Expand Down

0 comments on commit 1a8d20d

Please sign in to comment.