Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/validator/Constraints/Count.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/vendor/symfony/validator/Constraints/Count.php Thu Feb 28 13:21:36 2019 +0000 +++ b/vendor/symfony/validator/Constraints/Count.php Thu May 09 15:33:08 2019 +0100 @@ -43,6 +43,9 @@ 'min' => $options, 'max' => $options, ]; + } elseif (\is_array($options) && isset($options['value']) && !isset($options['min']) && !isset($options['max'])) { + $options['min'] = $options['max'] = $options['value']; + unset($options['value']); } parent::__construct($options);