-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Serializer thrown exception when property have "class-string<>" annotation #47736
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
Does it work if you use |
It does not matter of extractor because both |
I think the reason for that is that support for the pseudo-types was introduced with #44451 in 6.1. |
and seems there is no plans to backport it to 5.4 branch? |
No, we don't do that. You'll have to upgrade or write your own extractor. |
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
5.4
Description
When a class have a property annotated with
class-string<>
orstring&class-string<>
serializer throws an exception:Uncaught Symfony\Component\Serializer\Exception\NotNormalizableValueException: The type of the "..." attribute for class "..." must be one of "class-string<...>" ("string" given).
How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: