Skip to content

Commit

Permalink
remove array_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mehedimi committed May 16, 2024
1 parent 32c6aae commit 2190b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function insert(array $values, $ignore = false)
}

$payload = array_reduce($values, function ($values, $value) {
return array_merge($values, array_values(array_filter($value)));
return array_merge($values, array_values($value));
}, []);

$query = $this->grammar->compileInsert($this, $values, $ignore);
Expand Down

0 comments on commit 2190b1f

Please sign in to comment.