automapper-plus icon indicating copy to clipboard operation
automapper-plus copied to clipboard

Passing a scalar to `map` should throw an InvalidArgumentException

Open mark-gerarts opened this issue 7 years ago • 0 comments

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)

mark-gerarts avatar Oct 09 '18 15:10 mark-gerarts