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

Fix defaultName deprecation warning on symfony/console 6.1 #2107

Merged
merged 5 commits into from
Oct 3, 2022

Conversation

MasterOdin
Copy link
Member

@MasterOdin MasterOdin commented Oct 2, 2022

Fixes #2104

symfony/console has changed the mechanism in which command names should be declared, switching from using $defaultName static class parameter, to an attribute.

This deprecation was introduced in 6.1, but the AsName attribute has existed since 5.4. From my testing, it looks like this should work fine for users on older symfony versions with newer PHP versions, as the usage here was purely through ReflectionClass::getAttributes.

@MasterOdin MasterOdin marked this pull request as ready for review October 3, 2022 00:10
@MasterOdin MasterOdin changed the title Fix defaultName deprecation warning on symfony/console 6.1 Fix defaultName deprecation warning on newer symfony/console versions Oct 3, 2022
@MasterOdin MasterOdin changed the title Fix defaultName deprecation warning on newer symfony/console versions Fix defaultName deprecation warning on symfony/console 6.1 Oct 3, 2022
@MasterOdin MasterOdin merged commit 6eb0f29 into 0.x Oct 3, 2022
@MasterOdin MasterOdin deleted the symfony-console-deprecation branch October 3, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relying on the static property "$defaultName"
1 participant