Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/AbstractComparison.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
28 /** | 28 /** |
29 * {@inheritdoc} | 29 * {@inheritdoc} |
30 */ | 30 */ |
31 public function __construct($options = null) | 31 public function __construct($options = null) |
32 { | 32 { |
33 if (null === $options) { | |
34 $options = array(); | |
35 } | |
36 | |
33 if (is_array($options) && !isset($options['value'])) { | 37 if (is_array($options) && !isset($options['value'])) { |
34 throw new ConstraintDefinitionException(sprintf( | 38 throw new ConstraintDefinitionException(sprintf( |
35 'The %s constraint requires the "value" option to be set.', | 39 'The %s constraint requires the "value" option to be set.', |
36 get_class($this) | 40 get_class($this) |
37 )); | 41 )); |