-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Incorrect behavior of UnderscoreToCamelCaseLocalVariableNameRector #5715
Labels
Comments
Thank you for your report and demo link! Could you send a failing test case in a pull-request, so we have it covered in Rector? |
Sure thing #5716 |
samsonasik
pushed a commit
that referenced
this issue
Mar 1, 2021
TomasVotruba
added a commit
that referenced
this issue
Mar 12, 2024
rectorphp/rector-src@c390eab Skip mixed in ParamTypeByMethodCallTypeRector as not specific (#5715)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.org/demo/34fcf41f-eef0-4ff3-aad9-ce6bf3abfbb1
Diff:
Responsible rules
UnderscoreToCamelCaseLocalVariableNameRector
Expected Behavior
Rector should not rename variables if there's another variable with the same name in current scope. Otherwise put, this example should not be changed at all.
The text was updated successfully, but these errors were encountered: