-
Notifications
You must be signed in to change notification settings - Fork 93
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
ci: Migrate to PHP-CS-Fixer #230
Conversation
Amazing, great stuff! It seems rector.php is causing an error, but the error isn't shown in the logs - do you know what this is about? |
I need to take a look i had none locally (but in 8.3) |
That's it ->withPhpSets(php74: true) Named arguments are not supported before 8.0. Let's exclude this file for now :) |
(as it employs PHP >= 8 syntax)
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.
LGTM
That's still red :( Did not have time to find a fix |
I think we can get rid of the parameter in rector.php and it will determine it based on composer.json. That way, PHP 8 syntax is gone and CI can pass. |
That'd be perfect, nice! |
oh sorry... @meyfa ! Iade the first step on PR... next time every commuit 😅 |
Don't worry about it. This repo is configured to always squash commits on merge. Thanks for another great contribution! |
Happy to help :) |
#229
✅ get rid of PHP-CS
✅ install PHP-CS-Fixer instead
✅ make sure PHP-CS-Fixer runs in GitHub Actions
✅ keep code changes minimal (avoid reformatting as much as possible) - this means ensuring that the PHP-CS-Fixer configuration matches our PHP-CS configuration closely)
✅ PSR-12 standard
✅ NO yoda condition
In the following steps we will see for these ones, but i guess we already have a significative change in hands with this small PR :)
Have a good day :)