Skip to content

Commit

Permalink
[Console] changed an exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 8, 2013
1 parent 5bed1cd commit f2b60e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public function add(Command $command)
}

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;
Expand Down

0 comments on commit f2b60e9

Please sign in to comment.