-
Notifications
You must be signed in to change notification settings - Fork 84
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
Bug: ContainerGetToConstructorInjectionRector replaces constant with object #439
Comments
Thank you for your report! We'll need an isolated failing demo link from: http://getrector.org/demo, |
I've tried but it returns no code change - https://getrector.com/demo/fcd3131b-2333-45d4-934b-e3d38f9b9acc |
The demo cannot guess your service definition so it doesn't know about You can add the class in the example |
https://getrector.com/demo/d086fa78-f0b8-4c32-a7ac-6bc50c0d00d0 |
Can you share the full file content of your first message? The diff shows an anonymous function structure that is not in any of your demo examples 🙂 My first thought is the |
Demo is not suitable for such a complex rule reproducer, as it need the class to exist and be part of dumped xml. What are the parent types of your |
I am closing it as no reproducer repo, feel free to reopen new issue with reproducer repo. |
Reproduced the bug, yay, see related issue. |
Code:
Result:
Expected result
Or how I can make this rule to be skipped for Constants?
The text was updated successfully, but these errors were encountered: