Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2633'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Date.php
Expand Up @@ -128,7 +128,7 @@ public function isValid($value)
// and still return a DateTime object
$errors = DateTime::getLastErrors();

if (false === $date || $errors['warning_count'] > 0) {
if ($errors['warning_count'] > 0) {
$this->error(self::INVALID_DATE);
return false;
}
Expand Down

0 comments on commit cf70f09

Please sign in to comment.