automapper-plus
automapper-plus copied to clipboard
Passing a scalar to `map` should throw an InvalidArgumentException
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)