Closed
Description
Symfony version(s) affected
5.4.17, 5.4.19
Description
The fix in named arguments in 5.4.17 triggered issues which 5.4.19 rectified. But seems to have not fixed all cases.
How to reproduce
services:
_defaults:
public: true
bind:
$a: 'A'
App\Controller\IndexController:
arguments:
$b: 'B'
Above service configuration will trigger:
In DefinitionErrorExceptionPass.php line 54:
Invalid constructor argument for service "App\Controller\IndexController": integer expected but found string "b". Check your service definition.
Adding them both to bind
or both to arguments
will work (but is undesired).
Possible Solution
No response
Additional Context
No response