We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello
When creating entities with the maker, all attributes are typehinted as nullable. see this issue
It creates problems when the form component receives empty or null data.
Why not typehint the setter as nullable as well ?
To do so In ClassSourceManipulator::createSetterNodeBuilder
if (null !== $type) { // $paramBuilder->setType($isNullable ? new Node\NullableType(new Node\Identifier($type)) : $type); $paramBuilder->setType(new Node\NullableType(new Node\Identifier($type))); }
should become
$paramBuilder->setType(new Node\NullableType(new Node\Identifier($type)));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello
When creating entities with the maker, all attributes are typehinted as nullable. see this issue
It creates problems when the form component receives empty or null data.
Why not typehint the setter as nullable as well ?
To do so
In ClassSourceManipulator::createSetterNodeBuilder
should become
The text was updated successfully, but these errors were encountered: