Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Console] Fix aliases handling in command name completion #46341

Merged
merged 1 commit into from May 13, 2022

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented May 13, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

While working on composer/composer#10320 I noticed that command aliases like composer why did not autocomplete and then even if typed manually the args/options did not autocomplete if using the alias. This PR fixes it.

@Seldaek
Copy link
Member Author

Seldaek commented May 13, 2022

Restored the array_filter around list of names as getName is technically nullable.. I don't know if there would be a use case here for a command without a name but anyway better safe than sorry as suggestions need a string.

@chalasr
Copy link
Member

chalasr commented May 13, 2022

Good catch, thanks @Seldaek.

@chalasr chalasr merged commit 2d44f22 into symfony:5.4 May 13, 2022
@fabpot fabpot mentioned this pull request May 14, 2022
@carsonbot carsonbot changed the title Fix aliases handling in command name completion [Console] Fix aliases handling in command name completion May 14, 2022
This was referenced May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants