-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)DependencyInjection
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.4 |
Current error message for a non-autowirable argument is like
Cannot autowire service "App\MyService": argument "$myarg" of method "__construct()" must have a type-hint or be given a value explicitly.
But when $myarg
is already defined like string $myarg
then the part "must have a type-hint" is wrong as it already has a type hint. So this part of the error message can be left out.
Metadata
Metadata
Assignees
Labels
DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)DependencyInjection