Skip to content

Commit 96cef47

Browse files
committed
Leverage array_is_list(), get_debug_type(), is_countable(), is_iterable(), str_contains() and str_starts_with()
1 parent b5fd8a6 commit 96cef47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ public function isEmpty(): bool
704704

705705
return FormUtil::isEmpty($this->modelData) ||
706706
// arrays, countables
707-
((\is_array($this->modelData) || $this->modelData instanceof \Countable) && 0 === \count($this->modelData)) ||
707+
(is_countable($this->modelData) && 0 === \count($this->modelData)) ||
708708
// traversables that are not countable
709709
($this->modelData instanceof \Traversable && 0 === iterator_count($this->modelData));
710710
}

0 commit comments

Comments
 (0)