Skip to content

Commit 54d6685

Browse files
Fix issue when inserting model with first field which contain array value
1 parent d78b641 commit 54d6685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function insert(array $values)
155155
return true;
156156
}
157157

158-
if (!is_array(reset($values))) {
158+
if (!array_is_list($values)) {
159159
$values = [$values];
160160
}
161161

0 commit comments

Comments
 (0)