Skip to content

"mandatory" null validation is not working #575

@mvorisek

Description

@mvorisek

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions