Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Constraints / Traverse.php
index 9d8bc126d1888ef64264013ec0af9e603bc492a1..4572c9b2193c48d0e71546264e4aea4fedd6e5d5 100644 (file)
@@ -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);