Skip to content

Make SimplifyUselessVariableRector run without scope#4791

Merged
TomasVotruba merged 1 commit intomainfrom
tv-avoid-scope-if-possible
Aug 14, 2023
Merged

Make SimplifyUselessVariableRector run without scope#4791
TomasVotruba merged 1 commit intomainfrom
tv-avoid-scope-if-possible

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Aug 14, 2023

Ref #4730

@samsonasik
Copy link
Copy Markdown
Member

Moving to AbstractRector is not solution, as if the unreachableSmt handling removed, the feature will no longer working after UnreachableSmt node

@TomasVotruba
Copy link
Copy Markdown
Member Author

This is to lower the dependency on scope in general, unrelated to the unreachable stmt.
Rules should work on new just created nodes as well.

@TomasVotruba TomasVotruba merged commit 685fe90 into main Aug 14, 2023
@TomasVotruba TomasVotruba deleted the tv-avoid-scope-if-possible branch August 14, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants