Skip to content

FinalStaticAccessFixer - deprecate #4673

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

Merged

Conversation

julienfalque
Copy link
Member

In v2.16, we added rules final_static_access and self_static_accessor but they almost do the same thing so we can actually drop one. I chose to deprecate final_static_access in favor of self_static_accessor because the former does not support anonymous classes while the latter does.

/cc @ntzm @SpacePossum as authors of the rules.

@julienfalque julienfalque added this to the 2.17.0 milestone Nov 27, 2019
@julienfalque julienfalque force-pushed the deprecate-final-static-access branch from d10cc3c to ebf1c94 Compare December 3, 2019 07:59
bluedasher13 added a commit to bluedasher13/PHP-CS-Fixer that referenced this pull request Dec 28, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Should be deprecated in v2.16 & v3.0 & master?
PHP-CS-Fixer#4673

julienfalque commented on 28 Nov

In v2.16, we added rules ``final_static_access`` and ``self_static_accessor`` but they almost do the same thing so we can actually drop one. 

I chose to deprecate ``final_static_access`` in favor of ``self_static_accessor`` because the former does not support anonymous classes while the latter does.

Verified

This commit was signed with the committer’s verified signature.
julienfalque Julien Falque
@julienfalque julienfalque force-pushed the deprecate-final-static-access branch from ebf1c94 to 656a89c Compare January 6, 2020 18:59
@SpacePossum SpacePossum added the RTM Ready To Merge label Jan 8, 2020
@SpacePossum SpacePossum changed the title Deprecate final_static_access FinalStaticAccessFixer - deprecate Jan 18, 2020
@SpacePossum
Copy link
Contributor

Thank you @julienfalque.

SpacePossum added a commit that referenced this pull request Jan 18, 2020
This PR was merged into the 2.17-dev branch.

Discussion
----------

FinalStaticAccessFixer - deprecate

In v2.16, we added rules `final_static_access` and `self_static_accessor` but they almost do the same thing so we can actually drop one. I chose to deprecate `final_static_access` in favor of `self_static_accessor` because the former does not support anonymous classes while the latter does.

/cc @ntzm @SpacePossum as authors of the rules.

Commits
-------

656a89c Deprecate final_static_access rule
@SpacePossum SpacePossum merged commit 656a89c into PHP-CS-Fixer:master Jan 18, 2020
@SpacePossum SpacePossum removed the RTM Ready To Merge label Jan 18, 2020
@julienfalque julienfalque deleted the deprecate-final-static-access branch January 18, 2020 20:23
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

2 participants