-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer][PropertyInfo] PHPDocExtractor is failing with array<string, mixed> #47224
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
Comments
Can you create a small example application that allows to reproduce your issue? |
i will see if i can get the right conditions to repoduce it in a smaller setting what i can say for now:
For the ReflectionExtractor i probably need to debug more if i need 5.4.* for it to be added to the PropertyInfoExtractor |
@xabbuh i found the reason for my problem: This Fix right there isn't part of the 4.4.* branch for property-info for the ReflectionExtractor thing, i missunderstood the generators iterable wrong, it was there, just the faulty phpdoc extractor took preference over it |
@xabbuh how do i request such changes be backported to 4.4.* ? |
#37559 was first targeted to 4.4 but
so I don’t think it will change. You can check the PR comments though as some are workarounds. |
@MatTheCat is right. We do not backport features to already released branches. Updating to 5.4 or trying one of the described workarounds is indeed the solution. |
Symfony version(s) affected
4.4.x
Description
I was first using a Mockup UnitTest using ReflectionExtractor with ObjectNormalizer which did work
then i was trying to use a functional Test where i wanted to have the Services, but the Denormalize is failing:
This is the property:
notice the missing a from array?
i assume that this version of PropertyInfo the PHPDoc Extractor has problems with such array type, or is the definition wrong?
How to reproduce
Did a Breakpoint in the constructor of PropertyInfoExtractor
The $typeExtractors is called with a generator with 2 closures, the first is the doctrine Extractor, the second is the phpdoc extractor, the third one is missing, the count of the generator is 3
and the PHPDoc Extractor does something stupid with the type
Possible Solution
No response
Additional Context
Error when trying to denormalize
The text was updated successfully, but these errors were encountered: