You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will say that date is invalid, as it is not present on the second object. While evaluating them individually it does not matter that date is missing (unless it's specified as required).
$input = ['date'=>'2018-01-01'];
$v = newValidator($input);
$v->rule('date', 'myDate');
if (!$v->validate()) echo$v->errors(); # = All ok
Is this intentional?
The text was updated successfully, but these errors were encountered:
The validator seems to behave differently when validating a "root" value compared to an array child. Given the data:
Will say that
date
is invalid, as it is not present on the second object. While evaluating them individually it does not matter thatdate
is missing (unless it's specified as required).Is this intentional?
The text was updated successfully, but these errors were encountered: