# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code Causing Issue See https://getrector.com/demo/c02ef7ee-5660-4d91-8720-ca2d31d23892 ```php <?php if ($a) { echo 'a1'; } if ($a) { echo 'a2'; } else { echo 'b'; } ``` ### Responsible rules * `RemoveNextSameValueConditionRector` ## Expected Behavior the part of: ```php else { echo 'b'; } ``` should not be removed. <!-- How should Rector change the code? Or should Rector skip it? -->