-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
accidentally discovered such a problem
php8.1
example:
$validator = new Validator([]);
$validator->mapFieldsRules([
'dateFrom' => ['required', ['dateFormat', 'Y-m-d']],
]);
$validator->validate();output error:
ERROR: date_parse_from_format(): Passing null to parameter #2 ($datetime) of type string is deprecated on line 764 in file path/vlucas/valitron/src/Valitron/Validator.php.
I also wanted to know, how about not checking other rules if the required field is missing?
DarkSide666 and peter-yak
Metadata
Metadata
Assignees
Labels
No labels