Skip to content

Mixed type handler throws error when data is array #10

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions