-
Notifications
You must be signed in to change notification settings - Fork 83
[v5] Add Rector CI job and run automated refactoring #2755
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
base: 5.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add SF 7.3 rule set (I'm pretty sure I forget 7.3 in some of my own old PR)
@adriendupuis Symfony 7.3 has a new feature that required a lot of changes in this PR: invokable Commands. More about the feature itself: symfony/symfony#59340 , https://symfony.com/blog/new-in-symfony-7-3-invokable-commands-and-input-attributes Rector rule: https://getrector.com/rule-detail/invokable-command-input-attribute-rector Symfony will be transitioning their code samples to showcase them: symfony/symfony-docs#20553 (comment) And I think we should too. The changes are done by commits:
I see PHPStan is failing, I will address it in a follow-up PR. |
Follow-up PR: #2857 |
Co-authored-by: Adrien Dupuis <[email protected]>
code_samples/ change reportReport's diff is too long to be displayed in a comment. |
Status
Status: waiting for https://issues.ibexa.co/browse/IBX-10428
The Symfony 7.2 parts were extracted to #2864
Description
Inspired by https://github.com/ibexa/migrations/pull/404 and follow ups, this PR:
The only manual code changes in the code samples are included here:
to get rid of some around some PHPStan errors.
The code samples inclusion has been adjusted manually - I've reviewed the diff report multiple times to make sure I didn't miss anything.
Example Rector output:
PHPStan output after Rector, allowing to improve it even further:
For promoted properties, I've used the following config:
Checklist