[Rector] Apply BooleanInIfConditionRuleFixerRector#7951
[Rector] Apply BooleanInIfConditionRuleFixerRector#7951kenjis merged 20 commits intocodeigniter4:developfrom
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
BooleanInIfConditionRuleFixerRectorto ensure pass bool to if cond.Checklist: