Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / validator / Constraints / Collection.php
index ac1edd3b5927229f138312de866debd892163688..9cb2063042faeac3d5dce2fcbb7b6a6c6a2fb2ba 100644 (file)
@@ -63,7 +63,7 @@ class Collection extends Composite
         foreach ($this->fields as $fieldName => $field) {
             // the XmlFileLoader and YamlFileLoader pass the field Optional
             // and Required constraint as an array with exactly one element
-            if (is_array($field) && count($field) == 1) {
+            if (is_array($field) && 1 == count($field)) {
                 $this->fields[$fieldName] = $field = $field[0];
             }