Closed
Description
Symfony version(s) affected: 4.2-dev and previous
Description
if class accepts array of objects in constructor It doesn't recognize the argument type hint from phpdoc and deserializes it as a plain array.
How to reproduce
I created DeserializeNestedArrayOfObjectsTest that reproduces the issue.
Additional context
Here is Zoo class (without constructor). Animal object is deserialized as expected:
Then there is ZooImmutable (with constructor), an array given instead of Animal object: <- BUG