-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
lint:container command fails on named argument service #52768
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
Can you create a small example application that allows to reproduce your issue? |
The fix done in https://github.com/symfony/symfony/pull/49944/files#diff-3fd13113f2559d9117d20f2727218989fbb6f762c20a0ae7edd372f6c32d4dcbR143 might indeed need to be backported to 5.4 (apparently, this was fixed in this PR because the PR itself was affected by the bug, without checking which branches were affected) |
I'll probably need (too) deep understanding of the value processing to create an example application. I already tried to debug why it runs into this just for this service and does not raise the issue for others. |
It is a service with the following characteristics:
With this I should be able to create an example application tomorrow if still necessary. |
Here it is:
|
Thanks for the reproducer. 👍 Backporting the fix from #49944 indeed fixes this. |
… are not set (xabbuh) This PR was merged into the 5.4 branch. Discussion ---------- [DependencyInjection] don't check parameter values if they are not set | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52768 | License | MIT Commits ------- 210b371 don't check parameter values if they are not set
Symfony version(s) affected
5.4.31
Description
I receive an error like:
When executing
In debugging I noticed it comes from
CheckTypeDeclarationsPass
where::checkTypeDeclarations
expects a numbered list of arguments. I wonder why that just now fails as we have some more of these already, but anyway.I checked the class in Symfony 6 and 7 and noticed @nicolas-grekas fixed that in PR #49944 which does sound like something different in general. Picking just the change of the for loop would fix the command for me.
How to reproduce
Create a service with named arguments (not sure if this itself is really enough)
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: