-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Allow multi-dimenstion object array in AbstractObjectNormalizer #32832
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
[Serializer] Allow multi-dimenstion object array in AbstractObjectNormalizer #32832
Conversation
I have added some additional fixes and a test in the normalizer |
I could fix the test just switching the type of the intMatrix to 'array', but then we are saying that typing as What do you think? |
src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
603f39f
to
ea03f6d
Compare
Thank you @alediator. |
One question, it was submitted as bugfix, but merged into 4.4. Was this intended or a mistake, because there are no additional infos in the comments, if this was considered a new feature 🤔 cc @fabpot |
|
It was a pleasure to collaborate with this huge community! |
Modify ´AbstractObjectNormalizer´ adding the capability of parsing nested arrays of objects instead of parsing them into arrays
I was trying to parse a nested array of objects and I'd find out with this #31175 behavior. After trying to solve in different ways, I was able to do it adding the fix that allows the
AbstractObjectNormalizer
to parse more than one dimension array of objects.I would like to add some tests to assure it works and doesn't generate any side effects, but I'd prefer to open the PR to link it to the existing issue #31175.
On the other hand, if you think it is not applicable or you want me to change anything, please let me know.