comparison vendor/symfony/validator/Constraints/Traverse.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
23 { 23 {
24 public $traverse = true; 24 public $traverse = true;
25 25
26 public function __construct($options = null) 26 public function __construct($options = null)
27 { 27 {
28 if (is_array($options) && array_key_exists('groups', $options)) { 28 if (\is_array($options) && array_key_exists('groups', $options)) {
29 throw new ConstraintDefinitionException(sprintf( 29 throw new ConstraintDefinitionException(sprintf('The option "groups" is not supported by the constraint %s', __CLASS__));
30 'The option "groups" is not supported by the constraint %s',
31 __CLASS__
32 ));
33 } 30 }
34 31
35 parent::__construct($options); 32 parent::__construct($options);
36 } 33 }
37 34