Skip to content

ArrayDenormalizer::supportsDenormalization, array denormalizer  #20837

Open
@murat11

Description

@murat11

The code from Here

    public function supportsDenormalization($data, $type, $format = null)
    {
        return substr($type, -2) === '[]'
            && $this->serializer->supportsDenormalization($data, substr($type, 0, -2), $format);
    }

Why the array is sent to $this->serializer->supportsDenormalization? Should not we send the item of array? Or it's supposed that my object denormalizer checks arrays also?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions