rector icon indicating copy to clipboard operation
rector copied to clipboard

RemoveAlwaysTrueIfConditionRector remove functional condition

Open Oviglo opened this issue 2 years ago • 1 comments

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

rector_RemoveCondition

Expected Behaviour

Oviglo avatar Feb 14 '24 17:02 Oviglo

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.

TomasVotruba avatar Feb 14 '24 19:02 TomasVotruba

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.

samsonasik avatar Apr 20 '24 19:04 samsonasik