comparison 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
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
41 if (null !== $options && !\is_array($options)) { 41 if (null !== $options && !\is_array($options)) {
42 $options = [ 42 $options = [
43 'min' => $options, 43 'min' => $options,
44 'max' => $options, 44 'max' => $options,
45 ]; 45 ];
46 } elseif (\is_array($options) && isset($options['value']) && !isset($options['min']) && !isset($options['max'])) {
47 $options['min'] = $options['max'] = $options['value'];
48 unset($options['value']);
46 } 49 }
47 50
48 parent::__construct($options); 51 parent::__construct($options);
49 52
50 if (null === $this->min && null === $this->max) { 53 if (null === $this->min && null === $this->max) {