Closed
Description
Description
I'd like to use Serializer component to deserialize json array into a generic collection.
Related:
- [Serializer] Allow using generic annotations and not parsing them as an array #41996
- [PropertyInfo] Add support for generics #45071
Example
final class A
{
/** @param \Ds\Set<MyId> $ids */
public function __construct(
public \Ds\Set $ids
) {
}
For that, I though I'd implement my own denormalizer (ContextAwareDenormalizerInterface
). However, the generic type is stripped and simplified into \Ds\Set
by PropertyTypeExtractorInterface
so basically it is not possible to do serde of this kind of types.