virtus icon indicating copy to clipboard operation
virtus copied to clipboard

Don't coerce nil for collection attributes when required is false

Open mherold opened this issue 9 years ago • 1 comments

Without this fix, collection attributes can never be set to nil when coercion is enabled (because the coercer coerces nil to an empty array).

This should fix #334.

I originally suggested a change in a more central location, see this comment, but looking at the specs it seemed more appropriate to make this change only for collection attributes.

mherold avatar Mar 01 '16 10:03 mherold

:+1:

forest avatar Apr 04 '16 23:04 forest