-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Fatal error since >= 3.32.1: TypeError: TypedPropertiesDriver::shouldTypeHintInsideUnion
#1584
Comments
Uncaught PHP Exception TypeError: TypedPropertiesDriver::shouldTypeHintInsideUnion
TypeError: TypedPropertiesDriver::shouldTypeHintInsideUnion
Hi @nocive ! Could you share some example how to reproduce the issue? I guess we need some specific property type, but not sure how to reproduce it 😓 Best, Marcin. |
Might be a bit tricky to isolate it and figure out where it's coming from, but I'll try. My best guess without diving deeper is that it could be caused by property declarations of the likes: private (Collection&Selectable)|ArrayCollection $prop; Would that make sense as a possible culprit from your pov? |
Thanks! Looks like a good candidate. We do not have such case in our test case. I'm wondering what should be the the type for deserialisation.
|
This is a doctrine entity ManyToMany relational property, hence the complex type. Probably doing nothing is the safer option but I think that preserving the previous behavior before the introduction of #1571 should be the way to go. |
After the introduction of #1571 we experience a fatal error in a previously working codebase while serializing a doctrine entity object:
I saw that there are already other issues reported related to unions (such as #1566) but I didn't see any exhibiting the same symptoms so I'm reporting it just in case.
For now we're forced to pin 3.31.1 to work around the issue.
Thank you for the great work.
The text was updated successfully, but these errors were encountered: