Skip to content

[CodeQuality] Handle multiple ifs on SimplifyIfExactValueReturnValueRector#3527

Merged
samsonasik merged 3 commits intomainfrom
multi-if-if-exact-value
Mar 27, 2023
Merged

[CodeQuality] Handle multiple ifs on SimplifyIfExactValueReturnValueRector#3527
samsonasik merged 3 commits intomainfrom
multi-if-if-exact-value

Conversation

@samsonasik
Copy link
Member

Continue of PR:

return early null cause muti ifs don't get applied, this PR continue to next statement to support multiple ifs.

@samsonasik
Copy link
Member Author

For another statement after return, there is rule for that: RemoveUnreachableStatementRector.

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

@samsonasik samsonasik merged commit 48f84c3 into main Mar 27, 2023
@samsonasik samsonasik deleted the multi-if-if-exact-value branch March 27, 2023 20:16
samsonasik added a commit that referenced this pull request May 8, 2023
…ector (#3527)

* [CodeQuality] Handle multiple ifs on SimplifyIfExactValueReturnValueRector

* [CodeQuality] Handle multiple ifs on SimplifyIfExactValueReturnValueRector

* return to be last stmt
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.

1 participant