-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
StaticPropertyMetadata first constructor argument not nullable #1116
Comments
This has been updated in https://github.com/schmittjoh/serializer/blob/master/UPGRADING.md
That file has been updated, most probably we forgot to update the comment in the file. |
Ok thanks for pointing that out, I do have a follow up question regarding that though: when I do When I do It put's |
If you want to update the documentation/comment with the current behavior (that most probably is the one I had in mind when implementing the feature), a PR is welcome |
see #1118 |
Steps required to reproduce the problem
serializer/src/JsonSerializationVisitor.php
Line 169 in 1792fe2
Expected Result
Actual Result
TypeError: Argument 1 passed to JMS\Serializer\Metadata\StaticPropertyMetadata::__construct() must be of the type string, null given
Looks like the first argument is typed as not nullable string, if that value can indeed have the value null the typing in the constructor of
StaticPropertyMetadata
should be changed.The text was updated successfully, but these errors were encountered: