Skip to content

DX: Include self_static_accessor fixer in PhpCsFixer set#6882

Merged
Wirone merged 3 commits intoPHP-CS-Fixer:masterfrom
Wirone:codito/no-redundant-static-call-within-final-method
Apr 30, 2023
Merged

DX: Include self_static_accessor fixer in PhpCsFixer set#6882
Wirone merged 3 commits intoPHP-CS-Fixer:masterfrom
Wirone:codito/no-redundant-static-call-within-final-method

Conversation

@Wirone
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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
@Wirone Wirone deleted the codito/no-redundant-static-call-within-final-method branch April 30, 2023 23:25
@kubawerlos
Copy link
Copy Markdown
Member

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.

4 participants