We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d4ce52 + 82c42ae commit 8496ef4Copy full SHA for 8496ef4
src/Command.php
@@ -60,11 +60,14 @@ public function createCommandInstance($class_name)
60
if (!$name) {
61
throw new RuntimeException("Command {$class_name} has no defaultName");
62
}
63
- $description = $properties['defaultDescription'] ?? '';
+ $description = $properties['defaultDescription'] ?? null;
64
65
$command = Container::get($class_name);
66
- $command->setName($name)->setDescription($description);
+ $command->setName($name);
67
+ if ($description) {
68
+ $command->setDescription($description);
69
+ }
70
$this->add($command);
71
return $command;
72
-}
73
+}
0 commit comments