-
-
Notifications
You must be signed in to change notification settings - Fork 288
refactor(rector): Run rector php74 upgrade #391
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
Conversation
@olivernybroe Maybe this config:
|
Can you also add rector as part of the |
@nunomaduro Cool, I'll try running with those sets and add it to composer command! :) |
Let me know if you need any help ;) |
@TomasVotruba Thanks! 👍 Think I fixed all the errors in the code which caused problems. The biggest problem I had was actually that rector removed a bunch of newlines between methods 😢 But phpcs fixed that. Only needed to use the |
@olivernybroe Can we apply |
Alright this should be ready now 👍 |
@olivernybroe Good job with using it! 👍 Yes, AST cannot handle spaces, only coding standards, see https://github.com/rectorphp/rector/blob/master/README.md#how-to-apply-coding-standards Were there some false positives that should be fixed in core? |
- 'php71' | ||
- 'php72' | ||
- 'php73' | ||
- 'php74' |
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.
Also I recommend privatization
set
https://www.tomasvotruba.com/blog/2020/03/30/dont-show-your-privates-to-public
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.
Oh nice, totally something for us, thanks 😄
Just right up @nunomaduro alley.
@TomasVotruba Ah right, makes sense as the lexer ofc. ignores white spaces. Hmm there were one of the I think this has something to do with |
I see. That's actually correct, you need to include to |
@TomasVotruba It is already included in paths 🤔 |
This PR upgrades our code to php74 with an auto upgrade from rector.
I have fixed some errors introduced from this auto upgrade and everything should be working now. 😄
This might be a hard one to look through as there are soo many small changes, sorry! 👍