[Serializer] Fix AbstractObjectNormalizer not considering pseudo type false#45154
Conversation
|
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
|
Sorry, I have no clue how to fix the failing tests for PHP 7.2 & PHP 7.4 and the appveyor build. The issue probably is because of https://github.com/symfony/symfony/pull/45154/files#diff-748599238ed60d6c9394adf834ea5b2dcbb1af524b9583600dce1eed23e47ab8 line 18 where I declare a property as Any idea how to fix that? |
|
Hey! I think @jeroennoten has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
4cb4e34 to
27d9eff
Compare
|
Thank you @ThomasNunninger. |
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.