-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Deprecation when using @ParamConverter and Type Hints since Symfony 3.4 #24891
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
Comments
Hi @iluuu1994. Some refs about this: |
@ogizanagi And sure enough, the deprecations are gone! Sorry, I wasn't aware of that. Thank you! |
This is still a bug IMO... |
@Taluu : Not really to me. It's an incompatibility between the old autowiring system and the ServiceValueResolver introduced in 3.3, which is only opt-in by using the |
Ok, what will happen if you upgrade to 4.0? |
@kironet No. This flag disables the compatibility mode which is not present in Symfony 4.0. Thus this error will not occur in Symfony 4.0 projects. |
Not quite sure I'm understanding... you say "this error will not occur in Symfony 4.0 projects", as in that deprecation warning? I think we already know that because deprecation warnings from Symfony 3.4 go away in 4.0 because they're literally removed. What will happen if we don't fix the deprecation warnings is that Symfony 4.0 will break but with a new error (or maybe no error)... so I think what kironet is asking is if setting |
I get the following deprecation message:
This is my action:
The deprecation goes away as soon as I remove the
MyEntity
type hint. It looks like Symfony thinks I'm trying to inject aMyEntity
service. Is this a bug or am I doing something wrong?Thanks!
The text was updated successfully, but these errors were encountered: