Open
Description
Bug Report
Q | A |
---|---|
Version(s) | 4.13.0 |
Summary
When creating methods with arguments that accept NULL, an additional '\' character is inserted.
Current behavior
When creating methods with arguments that accept NULL, an additional '\' character is inserted.
This behavior is most likely due to this method
src/Generator/TypeGenerator/AtomicType.php
If you remove the substitution of these characters, the method is generated correctly
Most likely, these characters are removed incorrectly if use ClassName is present in the class. If you create properties without the '?' The extra '\' is not added.
How to reproduce
Try creating methods for nullable properties (not primitives).
Expected behavior
The method is created without the additional '\' character.