[Form] Fixed reference to \Traversable

This commit is contained in:
Jeremy Mikola 2010-07-06 11:12:16 -04:00 committed by Fabien Potencier
parent bfb081fd96
commit 5b2e92c215

View File

@ -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');
}