Explorar o código

[Form] Fixed reference to \Traversable

Jeremy Mikola %!s(int64=15) %!d(string=hai) anos
pai
achega
5b2e92c215
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Components/Form/CollectionField.php

+ 1 - 1
src/Symfony/Components/Form/CollectionField.php

@@ -53,7 +53,7 @@ class CollectionField extends FieldGroup
 
     public function setData($collection)
     {
-        if (!is_array($collection) && !$collection instanceof Traversable) {
+        if (!is_array($collection) && !$collection instanceof \Traversable) {
             throw new UnexpectedTypeException('The data must be an array');
         }