"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/RangeValidator.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RangeValidator.php  (phplist-3.4.5.tgz):RangeValidator.php  (phplist-3.4.6.tgz)
skipping to change at line 51 skipping to change at line 51
return; return;
} }
$min = $constraint->min; $min = $constraint->min;
$max = $constraint->max; $max = $constraint->max;
// Convert strings to DateTimes if comparing another DateTime // Convert strings to DateTimes if comparing another DateTime
// This allows to compare with any date/time value supported by // This allows to compare with any date/time value supported by
// the DateTime constructor: // the DateTime constructor:
// http://php.net/manual/en/datetime.formats.php // https://php.net/datetime.formats
if ($value instanceof \DateTimeInterface) { if ($value instanceof \DateTimeInterface) {
if (\is_string($min)) { if (\is_string($min)) {
$min = new \DateTime($min); $min = new \DateTime($min);
} }
if (\is_string($max)) { if (\is_string($max)) {
$max = new \DateTime($max); $max = new \DateTime($max);
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)