-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Final Classes without Interfaces #5890
Comments
I see, interesting, thats not however really what I am suggesting. Instead, there should be Interfaces. Just imagine you inject a dependency that is Having interfaces at hand allow for simple injection of anything without having to remove |
+1 here, I'm +1 to disallow inheritance, keep it |
@oleg-andreyev I am working on PRs to introduce more and more interfaces. You can review this open PR to support me on the matter. 👍 #5996 |
@oleg-andreyev, I don't think I can decorate fields which is what I need to extend/modify. |
If a class is marked as final, it should have an Interface.
Why? PHPUnit Tests. In Unit Tests I never want to use
new $something();
unless its the class I want to test. EasyAdmin does not allow me to inject some classes by Interface reference.The text was updated successfully, but these errors were encountered: