-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Rector] Apply Full PHP 7.3 Rector Set List (Skip JsonThrowOnErrorRector & StringifyStrNeedlesRector) #4601
[Rector] Apply Full PHP 7.3 Rector Set List (Skip JsonThrowOnErrorRector & StringifyStrNeedlesRector) #4601
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.
I don't understand why the string cast is needed here.
That's based on the following https://wiki.php.net/rfc/deprecations_php_7_3#string_search_functions_with_integer_needle For function that return string from helper, eg, |
We can skip |
Looking at the previous lines where the string casted variables arise, it seems these are already string so casting is unnecessary. |
…rRector and StringifyStrNeedlesRector
39a6a06
to
c1c047a
Compare
Ok, I skipped the |
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.
Seems this is the better choice for now.
Just wondering, what are in the Set List for 7.3?
That's collection of rector rules for php 7.3, you can check at: |
I am merging it then, thank you @paulbalandan @MGatner for the review. |
Alternative of #4600 with skip JsonThrowOnError & StringifyStrNeedlesRector.
Checklist: