Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for SimplifyForeachToArrayFilterRector #5859

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

gogowitsch
Copy link
Contributor

Bugfix: leave the loop as it is if the array looped over is modified within the loop (rather then filled from scratch).

I have added an example to the PHPUnit tests which this Rector rule should not touch. The example is odd, but harmless. If the rule applies it would break.

@TomasVotruba
Copy link
Member

Thanks 👍

@TomasVotruba TomasVotruba merged commit b84f76e into rectorphp:main Mar 15, 2021
TomasVotruba added a commit that referenced this pull request May 5, 2024
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