mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
N°5809 Update laminas/laminas-mail from 2.16.0 to 2.22.0
This commit is contained in:
@@ -207,6 +207,10 @@ class Date extends AbstractValidator
|
||||
// Invalid dates can show up as warnings (ie. "2007-02-99")
|
||||
// and still return a DateTime object.
|
||||
$errors = DateTime::getLastErrors();
|
||||
if ($errors === false) {
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($errors['warning_count'] > 0) {
|
||||
if ($addErrors) {
|
||||
$this->error(self::FALSEFORMAT);
|
||||
@@ -220,7 +224,6 @@ class Date extends AbstractValidator
|
||||
/**
|
||||
* Implodes the array into a string and proxies to {@link convertString()}.
|
||||
*
|
||||
* @param array $value
|
||||
* @param bool $addErrors
|
||||
* @return false|DateTime
|
||||
* @todo enhance the implosion
|
||||
|
||||
Reference in New Issue
Block a user