-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Malfunctioning use of variadic arguments in combination with autowired #289
Comments
This change was due to the fact that PHP 8 supports named parameters whose names are passed to variadics parameters. If I understand correctly, there was a problem of skipping the first |
dg
added a commit
that referenced
this issue
Sep 21, 2023
dg
added a commit
that referenced
this issue
Sep 21, 2023
dg
added a commit
that referenced
this issue
Sep 21, 2023
dg
added a commit
that referenced
this issue
Sep 22, 2023
dg
added a commit
that referenced
this issue
Sep 22, 2023
dg
added a commit
that referenced
this issue
Sep 23, 2023
dg
added a commit
that referenced
this issue
Sep 29, 2023
dg
added a commit
that referenced
this issue
Sep 29, 2023
dg
added a commit
that referenced
this issue
Oct 2, 2023
dg
added a commit
that referenced
this issue
Oct 15, 2023
dg
added a commit
that referenced
this issue
Oct 15, 2023
dg
added a commit
that referenced
this issue
Oct 18, 2023
dg
added a commit
that referenced
this issue
Oct 18, 2023
dg
added a commit
that referenced
this issue
Oct 18, 2023
dg
added a commit
that referenced
this issue
Oct 18, 2023
dg
added a commit
that referenced
this issue
Oct 18, 2023
dg
added a commit
that referenced
this issue
Oct 30, 2023
dg
added a commit
that referenced
this issue
Nov 2, 2023
dg
added a commit
that referenced
this issue
Nov 2, 2023
dg
added a commit
that referenced
this issue
Nov 2, 2023
dg
added a commit
that referenced
this issue
Nov 2, 2023
dg
added a commit
that referenced
this issue
Nov 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.1.2, the error has been present since release 3.0.16 and above
Bug Description
The error occurs with the following service configuration.
Example 1:
With this configuration, DI is trying to inject the service "bazClass1" into the argument "$barClass".
Example 2:
With this configuration, DI is trying to inject an array into the argument "$bazClasses".
Expected Behavior
The expected behavior is that even with a named argument, DI does not convert the variadic parameter into an array.
The text was updated successfully, but these errors were encountered: