-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
UnusedForeachValueToArrayKeysRector
removes values that are used
#8753
Labels
Comments
Demo page should be fixed now, could you retry? |
Could you create example at https://3v4l.org/ that show invalid result on reference? |
Yes, i will do. But 2nd one is strange ... there is similiar code in the same file (unsed referernce) that is not changed. Gimme one or two days to test. |
No worries, we can fix one by one with new issue if needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
This rule also removes values that are later used in that method ...
Minimal PHP Code Causing Issue
Demo-page returns 500 error ...
See
Expected Behaviour
If the value is used lat,er it should be skipped.
The text was updated successfully, but these errors were encountered: