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.
AsCommand
1 parent b6b4a19 commit 15e1a54Copy full SHA for 15e1a54
src/Illuminate/Console/Command.php
@@ -79,7 +79,11 @@ public function __construct()
79
// Once we have constructed the command, we'll set the description and other
80
// related properties of the command. If a signature wasn't used to build
81
// the command we'll set the arguments and the options on this command.
82
- $this->setDescription((string) $this->description);
+ if (! isset($this->description)) {
83
+ $this->setDescription((string) static::getDefaultDescription());
84
+ } else {
85
+ $this->setDescription((string) $this->description);
86
+ }
87
88
$this->setHelp((string) $this->help);
89
0 commit comments