Open
Description
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)