Skip to content

Commit

Permalink
Merge pull request #75 from glensc/Zend_Validate_Date
Browse files Browse the repository at this point in the history
Make Zend_Validate_Date work as expected under PHP 8.0
  • Loading branch information
falkenhawk authored Mar 14, 2021
2 parents 4c3d9f8 + 419f592 commit 79f89fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/zend-validate/library/Zend/Validate/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ private function _checkFormat($value)
} catch (Exception $e) {
// Date can not be parsed
return false;
} catch (Error $e) {
return false;
}

if (((strpos($this->_format, 'Y') !== false) or (strpos($this->_format, 'y') !== false)) and
Expand Down

0 comments on commit 79f89fc

Please sign in to comment.