X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FCollection.php;h=9cb2063042faeac3d5dce2fcbb7b6a6c6a2fb2ba;hb=9e65bae52407293a5182f19dc57b5628b09e92f4;hp=ac1edd3b5927229f138312de866debd892163688;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/validator/Constraints/Collection.php b/vendor/symfony/validator/Constraints/Collection.php index ac1edd3b5..9cb206304 100644 --- a/vendor/symfony/validator/Constraints/Collection.php +++ b/vendor/symfony/validator/Constraints/Collection.php @@ -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]; }