- Issue created by @kksandr
- Merge request !8969Issue #3464426: fixed AutowireTrait behavior for nullable types β (Open) created by Unnamed author
- Status changed to Needs work
4 months ago 12:14pm 29 July 2024
Hello, When using AutowireTrait and the autowire option for services, you will get different behavior if the service does not exist and the parameter is nullable:
I think this is a problem because I expect the two options to behave as similarly as possible.
Check if the parameter is nullable, if so then skip throwing an exception if the service does not exist and set the argument to null.
None.
None.
None.
Needs work
11.0 π₯
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.