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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX: Include self_static_accessor fixer in PhpCsFixer set #6882

Conversation

Wirone
Copy link
Member

@Wirone Wirone commented Apr 4, 2023

PHPStorm underlines all of these static:: calls in tests and I thought it would be good to include this fixer in the PhpCsFixer ruleset to keep the code clean from such redundant usage 馃檪. Let me know what you think.

@coveralls
Copy link

coveralls commented Apr 4, 2023

Pull Request Test Coverage Report for Build 4612059529

  • 8 of 8 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0003%) to 93.005%

Totals Coverage Status
Change from base Build 4600797305: 0.0003%
Covered Lines: 22735
Relevant Lines: 24445

馃挍 - Coveralls

@keradus
Copy link
Member

keradus commented Apr 4, 2023

Overall that's the goal, but also that's generating conflicts. should we limit amount of PRs first?
#4358 (comment)

@Wirone
Copy link
Member Author

Wirone commented Apr 4, 2023

should we limit amount of PRs first?

I don't see it happen soon enough 馃槄. I believe it would be better to apply it and then it's really easy to rebase PRs end resolve conflicts (because Fixer will fix it anyway, regardless of how conflict is resolved). Personally I am not afraid of invasive changes and I even could help with rebasing things, if I had enough project role to do it 馃槈.

@kubawerlos
Copy link
Contributor

I remember we had this discussion 2 years ago with the same plan - to lower the number of open PRs.

Let's fix the conflict and merge it, any conflicts it will introduce would be easy to resolve.

@Wirone Wirone force-pushed the codito/no-redundant-static-call-within-final-method branch from 352c3cb to f0792f8 Compare April 30, 2023 22:52
@kubawerlos kubawerlos added the RTM Ready To Merge label Apr 30, 2023
@Wirone Wirone merged commit 7995c50 into PHP-CS-Fixer:master Apr 30, 2023
14 checks passed
@Wirone Wirone deleted the codito/no-redundant-static-call-within-final-method branch April 30, 2023 23:25
@kubawerlos
Copy link
Contributor

Thank you @Wirone

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

4 participants