Skip to content

Fixed edge cases of RemoveDeadStmtRector#2250

Merged
TomasVotruba merged 1 commit intorectorphp:masterfrom
jeroensmit:removeDeadStmtRector
Nov 4, 2019
Merged

Fixed edge cases of RemoveDeadStmtRector#2250
TomasVotruba merged 1 commit intorectorphp:masterfrom
jeroensmit:removeDeadStmtRector

Conversation

@jeroensmit
Copy link
Copy Markdown
Contributor

Also covered all nodes that could be considered dead statement.

! important !
I changed the way it handles comments. Previously it didn't remove to preserve comments. Now the node is changed with a NOP preserving the command but removing the dead code.

Covered all nodes that could be considered dead statement
@jeroensmit jeroensmit force-pushed the removeDeadStmtRector branch from d412a24 to de8334e Compare November 4, 2019 20:58
@TomasVotruba TomasVotruba merged commit 6968f81 into rectorphp:master Nov 4, 2019
@TomasVotruba
Copy link
Copy Markdown
Member

Great work 👍

TomasVotruba added a commit that referenced this pull request May 7, 2022
rectorphp/rector-src@c2ade05 [DX] Refactor ChangeNestedIfsToEarlyReturnRector to direct return (#2250)
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.

2 participants