Skip to content

Passing a scalar to map should throw an InvalidArgumentException #28

Open
@mark-gerarts

Description

@mark-gerarts

When for example an array is passed to map, get_class will trigger an error. It would be better to check the type and throw an InvalidArgumentException if needed. In the future, we could add mappings from scalars (such as arrays, #18)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions