8000 [Console] Fix exception message when abbreviation matches multiple hidden commands by yoeunes · Pull Request #62493 · symfony/symfony · GitHub 8000
[go: up one dir, main page]

Skip to content

Conversation

@yoeunes
Copy link
Contributor
@yoeunes yoeunes commented Nov 23, 2025
Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

When an abbreviation ambiguously matches multiple hidden commands, the current logic fails to handle the resolution correctly.

In this scenario, reset($commands) returns false. Consequently, $this->get(false) is called, which leads to a confusing exception message: The command "" does not exist.

@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit 6f72971 into symfony:6.4 Nov 24, 2025
11 checks passed
@fabpot fabpot mentioned this pull request Nov 27, 2025
This was referenced Dec 7, 2025
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.

3 participants

0