Input must be always in the defined format and must be the same as output
of format method of DateTime.
Strict mode is set to false by default to keep BC.
Currently to the validator we can provide integer, double, array, string or DateTimeInterface value. In my opinion as validator has set format we should check if the input value has exactly the same format as set.
In strict mode we are comparing if:
Input must be always in the defined format and must be the same as output of format method of DateTime.
Strict mode is set to
false
by default to keep BC.Currently to the validator we can provide
integer
,double
,array
,string
orDateTimeInterface
value. In my opinion as validator has set format we should check if the input value has exactly the same format as set. In strict mode we are comparing if:Resolve #33 Fix zendframework/zendframework#6407
develop
branch, and submit against that branch.CHANGELOG.md
entry for the new feature.I would see strict mode by default enabled in v3, or ONLY strict mode in v3. Thoughts?
/cc @svycka @gianarb