We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc05717 commit 4c56f5bCopy full SHA for 4c56f5b
src/Validator.php
@@ -412,12 +412,7 @@ public static function datetime(
412
if ($datetime->format($format) !== $data) {
413
return false;
414
}
415
- $lastErrors = \DateTime::getLastErrors();
416
- if ($lastErrors === false) {
417
- return true;
418
- }
419
- return $lastErrors['warning_count'] === 0
420
- && $lastErrors['error_count'] === 0;
+ return \DateTime::getLastErrors() === false;
421
422
423
/**
0 commit comments