We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0f0f1 commit 2ac8fbbCopy full SHA for 2ac8fbb
src/Illuminate/Console/Application.php
@@ -267,7 +267,7 @@ protected function addToParent(SymfonyCommand $command)
267
*/
268
public function resolve($command)
269
{
270
- if (class_exists($command) && ($commandName = $command::getDefaultName())) {
+ if (is_subclass_of($command, SymfonyCommand::class) && ($commandName = $command::getDefaultName())) {
271
$this->commandMap[$commandName] = $command;
272
273
return null;
0 commit comments