Skip to content

Mixed type handler throws error when data is array #10

@ReservedDeveloper

Description

@ReservedDeveloper

When using the @Serializer\Type("Mixed") notation, the serializer will throw an error if the provided data is an array. This is due to the is_object() check occurring in the SerializationContext::isVisiting() method. The reason this check is performed is because Type("Mixed") is interpreted as a custom object type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions