Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Constraints / CollectionValidator.php
index f4a6d19ec75714e22110f72b46ce051bffcacc36..e3a297329d1c83511921648f755ff338b14894e2 100644 (file)
@@ -33,7 +33,7 @@ class CollectionValidator extends ConstraintValidator
             return;
         }
 
-        if (!is_array($value) && !($value instanceof \Traversable && $value instanceof \ArrayAccess)) {
+        if (!\is_array($value) && !($value instanceof \Traversable && $value instanceof \ArrayAccess)) {
             throw new UnexpectedTypeException($value, 'array or Traversable and ArrayAccess');
         }
 
@@ -50,11 +50,11 @@ class CollectionValidator extends ConstraintValidator
 
         foreach ($constraint->fields as $field => $fieldConstraint) {
             // bug fix issue #2779
-            $existsInArray = is_array($value) && array_key_exists($field, $value);
+            $existsInArray = \is_array($value) && array_key_exists($field, $value);
             $existsInArrayAccess = $value instanceof \ArrayAccess && $value->offsetExists($field);
 
             if ($existsInArray || $existsInArrayAccess) {
-                if (count($fieldConstraint->constraints) > 0) {
+                if (\count($fieldConstraint->constraints) > 0) {
                     $context->getValidator()
                         ->inContext($context)
                         ->atPath('['.$field.']')