Skip to content

[CodeQuality] Handle If cond as assign on ExplicitBoolCompareRector#6389

Merged
samsonasik merged 3 commits intomainfrom
assign
Oct 19, 2024
Merged

[CodeQuality] Handle If cond as assign on ExplicitBoolCompareRector#6389
samsonasik merged 3 commits intomainfrom
assign

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Oct 19, 2024

Closes rectorphp/rector#8741

move assign before if first when if cond is assign.

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @etshy

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 3bd920d into main Oct 19, 2024
@samsonasik samsonasik deleted the assign branch October 19, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect behavior of ExplicitBoolCompareRector - double variable assignment in condition

1 participant