Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip cond with side effect in RemoveDeadConditionAboveReturnRector #5424

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jan 2, 2024

Fixes rectorphp/rector#8382

Replaces #5423

noother and others added 3 commits January 2, 2024 20:05
Rector should not remove if() conditions if they contain a function call that is not proven read-only
@TomasVotruba TomasVotruba changed the title patch 2 Skip cond with side effect in RemoveDeadConditionAboveReturnRector Jan 2, 2024
@TomasVotruba TomasVotruba enabled auto-merge (squash) January 2, 2024 20:12
@TomasVotruba TomasVotruba merged commit 8724fee into main Jan 2, 2024
41 checks passed
@TomasVotruba TomasVotruba deleted the patch-2 branch January 2, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants