See
|
$m->set('c', null); // @TODO even "b"/mandatory field should fail! |
b/
mandatory field should throw when null is set like the
c/
required field there.
As confirmed by @DarkSide666, the set() method is expected to fully normalize/validate the field at the time of setting the value (ie. immediatelly as required does).
Considering this as a Major as this is core functionality and many developers may rely on that.
See
data/tests/FieldTest.php
Line 924 in 1c5c361
b/mandatoryfield should throw when null is set like thec/requiredfield there.As confirmed by @DarkSide666, the
set()method is expected to fully normalize/validate the field at the time of setting the value (ie. immediatelly asrequireddoes).Considering this as a Major as this is core functionality and many developers may rely on that.