Uh oh!
There was an error while loading. Please reload this page.
[Rector] Apply BooleanInIfConditionRuleFixerRector - #7951
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
samsonasik
commented
Sep 18, 2023
@kenjis updated 👍 |
samsonasik
commented
Sep 18, 2023
phpstan baseline regenerated 👍 |
Uh oh!
There was an error while loading. Please reload this page.
samsonasik
commented
Sep 18, 2023
@kenjis updated 👍 |
samsonasik
commented
Sep 18, 2023
should be ready for merge 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It would be better to remove conditions that are not necessary.
👋 Hi, @samsonasik! |
MGatner
commented
Sep 26, 2023
@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. |
samsonasik
commented
Sep 26, 2023
@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
15e91b2Comparekenjis
commented
Oct 16, 2023
@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
9c49724Comparesamsonasik
commented
Oct 16, 2023
@kenjis done 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
samsonasik
commented
Oct 16, 2023
@kenjis updated 👍 |
kenjis
commented
Oct 16, 2023
Please run to remove ignoreErrors. |
kenjis
commented
Oct 16, 2023
Run |
samsonasik
commented
Oct 16, 2023
@kenjis done 👍 |
kenjis
commented
Oct 16, 2023
@samsonasik Thank you! 👍 |
Uh oh!
There was an error while loading. Please reload this page.
samsonasik
commented
Oct 16, 2023
Ready to merge 👍 |
Description
@kenjis@paulbalandan here based on #7943 (review)
I apply
BooleanInIfConditionRuleFixerRectorto ensure pass bool to if cond.Checklist: