Skip to content

Commit

Permalink
Description check
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 5, 2024
1 parent 1c6a257 commit c9ba571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/RenderConsoleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()}";
}

Expand Down

0 comments on commit c9ba571

Please sign in to comment.