[Console] changed an exception class
This commit is contained in:
parent
5bed1cd6d2
commit
f2b60e9c68
@ -408,7 +408,7 @@ class Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (null === $command->getAliases()) {
|
if (null === $command->getAliases()) {
|
||||||
throw new \InvalidArgumentException(sprintf('You must call the parent constructor in "%s::__construct()"', get_class($command)));
|
throw new \LogicException(sprintf('You must call the parent constructor in "%s::__construct()"', get_class($command)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->commands[$command->getName()] = $command;
|
$this->commands[$command->getName()] = $command;
|
||||||
|
Reference in New Issue
Block a user