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 8299ee8 commit 08e54b5Copy full SHA for 08e54b5
src/Type/DatetimeType.php
@@ -38,6 +38,8 @@ private function isValidDatetime(string $value): bool
38
$date = DateTime::createFromFormat($this->datetimeFormat, $value, new DateTimeZone($this->datetimeZone));
39
$errors = DateTime::getLastErrors();
40
41
- return $date && (!$errors || $errors['warning_count'] === 0 && $errors['error_count'] === 0);
+ return $date && (
42
+ !$errors || ($errors['warning_count'] === 0 && $errors['error_count'] === 0)
43
+ );
44
}
45
0 commit comments