-
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
refactor: [Rector] Apply ExplicitBoolCompareRector #8704
refactor: [Rector] Apply ExplicitBoolCompareRector #8704
Conversation
Ready to review 👍 |
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'm not sure abt the change in strings to === ''
and === '0'
. Are we really checking for non-falsy-string? Or maybe just non-empty-string?
For the others, I think I'm good with those changes.
This is the exact equal truthy check to string, which should be safer. if it only check on empty string |
@kenjis I updated to remove |
Ready to merge 👍 |
Let's merge it, thank you @paulbalandan @kenjis for the review 👍 |
Description
Make if conditions more explicit and reduce phpstan baseline errors.
Checklist: