rector
rector copied to clipboard
RemoveAlwaysTrueIfConditionRector remove functional condition
Bug Report
| Subject | Details |
|---|---|
| Rector version | e.g. v1.0.0 (invoke vendor/bin/rector --version) |
Hi, this rule remove a functional condition, Doctrine ArrayCollection contains function not always return "true"
Minimal PHP Code Causing Issue
Expected Behaviour
Thank you for your report!
We'll need an isolated failing demo link from: http://getrector.com/demo, that way we can reproduce the bug.
I tried to replicate it, it seems can't be reproduced at https://getrector.com/demo/56449110-0b8e-4f1e-b13b-1842b151ccb5
Please try latest version, if the issue persist, please provide reproducible code so it covered.
Thank you.