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
Interface parameters are not correctly autowired #614
Comments
Thank you for the bug report. Do you have caching or compilation enabled? Or is it exactly the code you posted here? |
The code that I tested is exactly what I posted (and the only dependency in my |
OK thanks, then I believe it's a bug. I'll have a look at it! (the test class for context: https://github.com/PHP-DI/PHP-DI/blob/master/tests/IntegrationTest/ContainerSetTest.php#L33) |
Hey |
Unfortunately not sorry :/ What could be great to move forward is if you could send a PR with a new test that reproduces this (I added a link to where that test could be added in my previous comment). Maybe that will help understand the issue. |
Hey Matthieu, We have a lot of bindings which are set this way. |
Fix #614: regression in `Container::set()`
This works correctly on PHP-DI 5, but not on 6:
Is this change of behaviour intended? I haven't found anything about this in the migration guide.
Output of the script on PHP-DI6:
composer show
:The text was updated successfully, but these errors were encountered: