[Form] Fixed reference to \Traversable
This commit is contained in:
parent
bfb081fd96
commit
5b2e92c215
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user