Skip to content

ZSH autocomplete error without suggestions #48426

@WarriorXK

Description

@WarriorXK

Symfony version(s) affected

6.2

Description

If using the ZSH autocomplete feature, an error is thrown if no values are provided for autocompletion.

<application> <command> Warning:\ Undefined\ variable\ \$values\ in\ /Users/kevinmeijer/BFUtils/vendor/symfony/console/Completion/Output/ZshCompletionOutput.php\ on\ line\ 33

How to reproduce

Enable autcompletion for a ZSH shell, press TAB to autocomplete an argument and/or option while not providing any suggestions.

Possible Solution

This should be an easy fix by simply defining $values = []; at the start of write() in Completion/Output/ZshCompletionOutput.php

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions