-
-
Notifications
You must be signed in to change notification settings - Fork 679
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
[FrameworkBundle] Let GetToConstructorInjectionRector work with trait as well #564
Conversation
088dde4
to
6e931c8
Compare
@mssimi This should fix it. This is the parent trait test case: https://github.com/rectorphp/rector/pull/564/files#diff-e5bdcf0566e5d578d1857ed74d5fd27e |
Tested on example I posted, still does nothing. |
Yep it works now:) |
Actually Interface should be used there. \Symfony\Bundle\FrameworkBundle\Translation\Translator
\Symfony\Bundle\FrameworkBundle\Translation\TranslatorInterface |
Could you add it via PR? |
Well, if you don't use Interface, exception is thrown. |
Luckily, it was an easy pick. Your application helped me to find it :) |
Closes #560