X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FCollection.php;fp=vendor%2Fsymfony%2Fvalidator%2FConstraints%2FCollection.php;h=9cb2063042faeac3d5dce2fcbb7b6a6c6a2fb2ba;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=ac1edd3b5927229f138312de866debd892163688;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;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]; }