Skip to content

Commit

Permalink
fix: shell-completion runs without warnings on PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Aug 23, 2022
1 parent 5a0c64c commit 452d4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellCompletion/FishShellCompletionDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function describeInputOption(InputOption $option, array $options = arr
"' -f"
);

if (strlen($option->getShortcut()) > 0) {
if ($option->getShortcut() && strlen($option->getShortcut()) > 0) {
if (strlen($option->getShortcut()) == 1) {
$this->output->write(" -s ");
} else {
Expand Down

0 comments on commit 452d4bc

Please sign in to comment.