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

ContainerGetToConstructorInjectionRector should ignore PHPUnit or KernelTestCase classes #64

Closed
alexander-schranz opened this issue Nov 14, 2021 · 0 comments · Fixed by #66

Comments

@alexander-schranz
Copy link
Contributor

When having ContainerGetToConstructorInjectionRector activated it tries to refractor the PHPUnit KernelTestCase classes to constructor. But as this are not service this should be avoided.

I tried to contribute it but I found not yet a way how I can check in


if the $node is inside a PHPUnit TestCase class / KernelTestCase class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant