-
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 BooleanInIfConditionRuleFixerRector #7951
Conversation
@kenjis updated 👍 |
phpstan baseline regenerated 👍 |
@kenjis updated 👍 |
should be ready for merge 👍 |
It would be better to remove conditions that are not necessary.
👋 Hi, @samsonasik! |
@samsonasik I think this is a good direction to go but will need some more individual attention to the changes. Please review @paulbalandan and @kenjis suggestions. |
@kenjis @paulbalandan the type check is based on type defined in param, so that check fix also phpstan, except, we use assert before if to enforce type. |
7fc6c79
to
15e91b2
Compare
@samsonasik Can you update the PR branch, and run rector again? |
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
f351991
to
9c49724
Compare
@kenjis done 👍 |
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
@kenjis updated 👍 |
Please run to remove ignoreErrors.
|
Run |
@kenjis done 👍 |
@samsonasik Thank you! 👍 |
Ready to merge 👍 |
Description
@kenjis @paulbalandan here based on #7943 (review)
I apply
BooleanInIfConditionRuleFixerRector
to ensure pass bool to if cond.Checklist: