Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Constraints / CountValidator.php
index 69c8257206b56349b7c04c6594f6101a96c61904..39be8aa82e9a788a92a403f7c1144c3f0816a802 100644 (file)
@@ -29,11 +29,11 @@ class CountValidator extends ConstraintValidator
             return;
         }
 
-        if (!is_array($value) && !$value instanceof \Countable) {
+        if (!\is_array($value) && !$value instanceof \Countable) {
             throw new UnexpectedTypeException($value, 'array or \Countable');
         }
 
-        $count = count($value);
+        $count = \count($value);
 
         if (null !== $constraint->max && $count > $constraint->max) {
             $this->context->buildViolation($constraint->min == $constraint->max ? $constraint->exactMessage : $constraint->maxMessage)