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 undefined index for inconsistent command name definition #38024

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Sep 1, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fixes #38015
License MIT
Doc PR -

The issue happens when the command name is set via construct/setName() and is routed via a command loader under a different name, which causes Application::get(): Command to return null (return type violation) with a notice. This makes it throws a proper CommandNotFoundException as expected.

@fabpot
Copy link
Member

fabpot commented Sep 2, 2020

Thank you @chalasr.

@fabpot fabpot merged commit 33cacad into symfony:3.4 Sep 2, 2020
This was referenced Sep 2, 2020
@chalasr chalasr deleted the cmd-multi-name branch September 2, 2020 11:05
@fabpot fabpot mentioned this pull request Sep 27, 2020
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