X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FTraverse.php;h=4572c9b2193c48d0e71546264e4aea4fedd6e5d5;hp=9d8bc126d1888ef64264013ec0af9e603bc492a1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/symfony/validator/Constraints/Traverse.php b/vendor/symfony/validator/Constraints/Traverse.php index 9d8bc126d..4572c9b21 100644 --- a/vendor/symfony/validator/Constraints/Traverse.php +++ b/vendor/symfony/validator/Constraints/Traverse.php @@ -25,11 +25,8 @@ class Traverse extends Constraint public function __construct($options = null) { - if (is_array($options) && array_key_exists('groups', $options)) { - throw new ConstraintDefinitionException(sprintf( - 'The option "groups" is not supported by the constraint %s', - __CLASS__ - )); + if (\is_array($options) && array_key_exists('groups', $options)) { + throw new ConstraintDefinitionException(sprintf('The option "groups" is not supported by the constraint %s', __CLASS__)); } parent::__construct($options);