Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ArrayDenormalizer::supportsDenormalization, array denormalizer  #20837

Copy link
Copy link
Open
@murat11

Description

@murat11
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.