-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] AbstractObjectNormalizer does not consider pseudo type false #45151
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
Labels
Comments
Symfony 4.4 throws
Therefore I did not provide a fix for Symfony 4.4. Symfony 5.4. (withoug the fix) throws
|
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
When you have a PHP 8.0 object where an attribute uses the pseudo type false (in a union type) you can't denormalize an array to that object.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
AbstractObjectNormalizer to respect false pseudo type declaration.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
…ct `false` pseudo type declaration Added a manual check if the type is `false`. Instead of calling (a not existing) `is_false()`, now the data is validated directly.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
When you have a PHP 8.0 object where an attribute uses the pseudo type false (in a union type) you can't denormalize an array to that object.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
…ct `false` pseudo type declaration Added a manual check if the type is `false`. Instead of calling (a not existing) `is_false()`, now the data is validated directly.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
Removed a void return type in a test method.
ThomasNunninger
added a commit
to ThomasNunninger/symfony
that referenced
this issue
Jan 24, 2022
Prefixed a globally namespaced PHP constant with a backslash.
nicolas-grekas
added a commit
that referenced
this issue
Jan 26, 2022
…pseudo type false (Thomas Nunninger) This PR was squashed before being merged into the 5.3 branch. Discussion ---------- [Serializer] Fix AbstractObjectNormalizer not considering pseudo type false | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #45151 | License | MIT | Doc PR | AbstractObjectNormalizer does not consider pseudo type false (bug #45151) When you have a PHP 8.0 object where an attribute uses the pseudo type false (in a union type) you can't denormalize an array to that object. Commits ------- 27d9eff [Serializer] Fix AbstractObjectNormalizer not considering pseudo type false
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected
5.4
Description
When you have a PHP 8.0 object where an attribute uses the pseudo type
false
(in a union type) you can't denormalize an array to that object.How to reproduce
Possible Solution
Pull request follows
Additional Context
No response
The text was updated successfully, but these errors were encountered: