Skip to content

Commit c2172e7

Browse files
committed
bug symfony#48428 Fixed undefined variable error (Kevin Meijer)
This PR was merged into the 6.2 branch. Discussion ---------- Fixed undefined variable error | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#48426 | License | MIT | Doc PR | n/a Fixes an undefined variable warning during ZSH autocomplete if no suggestions have been provided. Commits ------- f405bfd Fixed undefined variable error
2 parents eaf92de + f405bfd commit c2172e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Console/Completion/Output/ZshCompletionOutput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class ZshCompletionOutput implements CompletionOutputInterface
2121
{
2222
public function write(CompletionSuggestions $suggestions, OutputInterface $output): void
2323
{
24+
$values = [];
2425
foreach ($suggestions->getValueSuggestions() as $value) {
2526
$values[] = $value->getValue().($value->getDescription() ? "\t".$value->getDescription() : '');
2627
}

0 commit comments

Comments
 (0)