Skip to content

Fix SingleInArrayToCompareRector if array item is variadic#3640

Merged
samsonasik merged 3 commits intorectorphp:mainfrom
raoz:patch-1
Apr 21, 2023
Merged

Fix SingleInArrayToCompareRector if array item is variadic#3640
samsonasik merged 3 commits intorectorphp:mainfrom
raoz:patch-1

Conversation

@raoz
Copy link
Copy Markdown
Contributor

@raoz raoz commented Apr 20, 2023

@raoz raoz requested a review from TomasVotruba as a code owner April 20, 2023 15:24
@samsonasik
Copy link
Copy Markdown
Member

Thank you @raoz

@samsonasik samsonasik merged commit add5582 into rectorphp:main Apr 21, 2023
samsonasik pushed a commit that referenced this pull request May 8, 2023
* Add failing test fixture for SingleInArrayToCompareRector

Based on https://getrector.com/demo/001ae62c-7857-4ce2-b4c1-8be77fd37568

* fix SingleInArrayToCompareRector in case the array item is variadic

* rename SingleInArrayToCompareRector unpacking fixture as suggested by
@samsonasik
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.

Incorrect behavior of SingleInArrayToCompareRector

2 participants