Skip to content

Commit 7ebfe5f

Browse files
committed
fix: returns false if result is empty but expected array
1 parent 9fcb7ae commit 7ebfe5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function getOriginal()
342342

343343
public function getInstanceFromBuilder($result, $setAttribute = false)
344344
{
345-
if (!\is_array($result) || \count($result) == 0) {
345+
if (!\is_array($result)) {
346346
return false;
347347
}
348348

0 commit comments

Comments
 (0)