We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fd8a6 commit 96cef47Copy full SHA for 96cef47
Form.php
@@ -704,7 +704,7 @@ public function isEmpty(): bool
704
705
return FormUtil::isEmpty($this->modelData) ||
706
// arrays, countables
707
- ((\is_array($this->modelData) || $this->modelData instanceof \Countable) && 0 === \count($this->modelData)) ||
+ (is_countable($this->modelData) && 0 === \count($this->modelData)) ||
708
// traversables that are not countable
709
($this->modelData instanceof \Traversable && 0 === iterator_count($this->modelData));
710
}
0 commit comments