Skip to content

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