Thanks to visit codestin.com Credit goes to github.com
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
Symfony version(s) affected: 5.1.0
Description My class has a typed property. Empty value for this property in the submitted form shouldn't be converted to null.
What do you think about that ?
How to reproduce
public string $title = '';
Type property App\Entity\MyEntity::$title must be a string, null used.
The text was updated successfully, but these errors were encountered:
This looks expected to me. User submitted data are inherently invalid. The underlying data structure needs to adapt for that. I see several options:
null
Sorry, something went wrong.
closing as explained above
No branches or pull requests
Symfony version(s) affected: 5.1.0
Description
My class has a typed property. Empty value for this property in the submitted form shouldn't be converted to null.
What do you think about that ?
How to reproduce
Type property App\Entity\MyEntity::$title must be a string, null used.
The text was updated successfully, but these errors were encountered: