Validation
Validation copied to clipboard
Reset missing date information in CanValidateDateTime
missing date information are now reset to 0 (1970-01-01T00:00:00), because otherwise they are taken from current date/time (please refer to https://www.php.net/manual/en/datetimeimmutable.createfromformat.php), so:
Respect\Validation\Validator::date("m")->isValid('06')
is valid if it's run on October 30 is not valid if it's run on October, 31