|
@@ -80,7 +80,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
|
|
}
|
|
|
|
|
|
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
|
|
|
- throw new UnexpectedTypeException($data, 'array or \Traversable or \ArrayAccess');
|
|
|
+ throw new UnexpectedTypeException($data, 'array or (\Traversable and \ArrayAccess)');
|
|
|
}
|
|
|
|
|
|
// First remove all rows
|
|
@@ -106,7 +106,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
|
|
}
|
|
|
|
|
|
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
|
|
|
- throw new UnexpectedTypeException($data, 'array or \Traversable or \ArrayAccess');
|
|
|
+ throw new UnexpectedTypeException($data, 'array or (\Traversable and \ArrayAccess)');
|
|
|
}
|
|
|
|
|
|
// Remove all empty rows
|
|
@@ -140,7 +140,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
|
|
}
|
|
|
|
|
|
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
|
|
|
- throw new UnexpectedTypeException($data, 'array or \Traversable or \ArrayAccess');
|
|
|
+ throw new UnexpectedTypeException($data, 'array or (\Traversable and \ArrayAccess)');
|
|
|
}
|
|
|
|
|
|
if ($this->allowDelete) {
|