-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Working with nullable properties. #196
Comments
Are you able to write a snippet that runs the generator and reproduces the problem here? I can't understand how Also, |
@Ocramius Yes, it is passed as a string, because if you pass the full class path, an additional prefix will be written, which is not needed due to the use of 'use' |
@Ocramius Can you give an example of a format that will make it easier for you to understand the problem? |
More in #176
The best you can do to reproduce the problem is:
BTW, don't paste in screenshots: they are terrible to process :D You can use triple backticks for a code snippet. That said, I endorse checking #176 first. |
Bug Report
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.
The text was updated successfully, but these errors were encountered: