diff --git a/src/Actions/RenderConsoleCommand.php b/src/Actions/RenderConsoleCommand.php index 282f3d0..1bf2734 100644 --- a/src/Actions/RenderConsoleCommand.php +++ b/src/Actions/RenderConsoleCommand.php @@ -23,7 +23,7 @@ public function __invoke(ConsoleCommand $consoleCommand): void $parts[] = $this->renderParameter($parameter); } - if ($consoleCommand->getDescription()) { + if ($consoleCommand->getDescription() !== null && $consoleCommand->getDescription() !== '') { $parts[] = "- {$consoleCommand->getDescription()}"; }