Skip to content

More reliable way getting first stmt item#2618

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
Jaapze:master
Jan 9, 2020
Merged

More reliable way getting first stmt item#2618
TomasVotruba merged 2 commits intorectorphp:masterfrom
Jaapze:master

Conversation

@Jaapze
Copy link
Copy Markdown
Contributor

@Jaapze Jaapze commented Jan 9, 2020

The key values are not reliable, this problem is caused by unsetting the values in the stmts array of a node without resetting them. It's not only in this rector file and might need a bigger fix, but this one was bugging me whole day.

Jaapze added 2 commits January 9, 2020 11:41
The key values are not reliable, this problem is caused by unsetting the values in the stmts array of a node without resetting them. It's not only in this rector file and might need a bigger fix, but this one was bugging me whole day.
@Jaapze
Copy link
Copy Markdown
Contributor Author

Jaapze commented Jan 9, 2020

I'm not really sure why the Travis CI build failed, can i re-trigger these checks?

@TomasVotruba
Copy link
Copy Markdown
Member

CI fail is unrelated, it's PHAR building.
I'll move it only to master today.

@TomasVotruba TomasVotruba self-requested a review January 9, 2020 12:18
@TomasVotruba TomasVotruba merged commit 8eafe7a into rectorphp:master Jan 9, 2020
TomasVotruba added a commit that referenced this pull request Jul 3, 2022
rectorphp/rector-src@45c91eb [DeadCode] Add RemoveJustVariableAssignRector (#2618)
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