Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / ConstraintViolationList.php
index a80d602b26fd96e10ec46c40218f7cd843bc71d2..c18dd2195fab906945a912d49057b4048432e6d0 100644 (file)
@@ -120,7 +120,7 @@ class ConstraintViolationList implements \IteratorAggregate, ConstraintViolation
      */
     public function count()
     {
-        return count($this->violations);
+        return \count($this->violations);
     }
 
     /**
@@ -171,7 +171,7 @@ class ConstraintViolationList implements \IteratorAggregate, ConstraintViolation
         $codes = (array) $codes;
         $violations = array();
         foreach ($this as $violation) {
-            if (in_array($violation->getCode(), $codes, true)) {
+            if (\in_array($violation->getCode(), $codes, true)) {
                 $violations[] = $violation;
             }
         }