-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New circular reference errors that weren't there in Symfony DI version 3.3 #25044
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
We need a reproducer actually, the current description is unactionable if anyone else than you would like to work on it. |
Could you do the following, so we could get a reproducer ?
In case you need some help you can read this blog post : https://symfony.com/doc/current/contributing/code/reproducer.html |
Might you also check #25055 see if it changes anything for you? |
Guys, will try it out and let you know soon! Thanks for the advice. |
ping @jagjeetdhaliwal any news? would be great to have confirmation/information before 4.0.0 (ie next Friday) |
Hello people! We managed to reproduce the problem: https://github.com/ged15/symfony-34-di-bug/blob/master/src/AppBundle/Controller/DefaultController.php#L17-L18. We are trying to get services by exploiting the fact that Symfony DI allows case-insensitive ID lookup. I know that is not a good idea but that worked in Symfony 3.3 and we do it for legacy reasons. Let me or @jagjeetdhaliwal know if we can help further! |
According to the changelog, case-insensitivity is deprecated since Sf 3.4, so you should probably go another way? |
@NicoHaase we should, but, once again, legacy 😢 It is still a BC break. |
thanks for the reproducer, fixed #25044 |
…ref (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Fix missing unset leading to false-positive circular ref | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25044 | License | MIT | Doc PR | - Commits ------- 17d84f6 [DI] Fix missing unset leading to false-positive circular ref
Just upgraded to the beta version (3.4) of the Dependency Injection (DI) package. On running the same test suite, we are getting new circular reference errors that weren't there in version 3.3. The codebase and test suite are exactly the same and only the DI package has been upgraded. Also on digging much deeper, the circular references don't really seem to exist. Just reverted back to the old Symfony DI version (3.3) using composer and everything is running smoothly again.
Please let me know if you need any more information!
The text was updated successfully, but these errors were encountered: