-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Can not replace arguments if none have been configured yet - InlineAutowire #54823
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
Reproducer: https://github.com/derrabus/di-replace-arg-reproducer The app on that reproducer repository works fine if you remove the last commit which upgrades from Symfony 7.0 to 7.1. Status: Reviewed |
Update: It has nothing to do with the Monolog channel magic: A simple service that mixes autowiring with explicitly set named arguments is apparently enough. I've updated the reproducer. |
ref #52820 |
Should be fixed by #54908 |
can confirm thanks @nicolas-grekas ! |
Symfony version(s) affected
7.1
Description
Cache clear drops:
How to reproduce
But actually the service declaration is as simple as:
Possible Solution
I tracked the bug to:
symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveAutowireInlineAttributesPass.php
Lines 50 to 52 in 820382c
Probably that this pass should be done later on? Not sure what AutowireInline actually tries to fix.
If I may also the code change at b9a838e#diff-a0f563695b61a31b6e2bee8d55d019b52326c245667db02ba878a2a878d78b98 should be commented as it's hard to know why the sudden change of testing for
.
as first char of the service nameAdditional Context
No response
The text was updated successfully, but these errors were encountered: