Skip to content

Commit

Permalink
Fix #6053. Dont crash on empty description (#6078)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Aug 2, 2024
1 parent 22a26f8 commit 7fe0a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/help/HelpCLIFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function write(OutputInterface $output, $data, FormatterOptions $options)
{
$formatterManager = new FormatterManager();

$output->writeln($data['description']);
$output->writeln((string)$data['description']);
if (array_key_exists('help', $data) && $data['help'] != $data['description']) {
$output->writeln('');
$output->writeln($data['help']);
Expand Down

0 comments on commit 7fe0a49

Please sign in to comment.