diff --git a/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php b/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php index 5cb19c9..98049c5 100644 --- a/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php +++ b/src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php @@ -458,7 +458,7 @@ private function doInsert(array $statements, array $data, $type): array '(' . $this->arrayStr($values, ', ', false) . ')', ]; - $bindings = array_merge(...$bindings); + $bindings = array_merge(...(array)$bindings); if (isset($statements['onduplicate']) === true) { @@ -502,7 +502,7 @@ private function getUpdateStatement(array $data): array } } - $bindings = array_merge(...$bindings); + $bindings = array_merge(...(array)$bindings); $statement = trim($this->arrayStr($statements, ', ', false)); @@ -587,7 +587,7 @@ protected function setSelectStatement(array &$statements, array &$bindings): boo $statements['selects'] = array_unique($statements['selects']); } - $bindings = array_merge(...$bindings); + $bindings = array_merge(...(array)$bindings); return $hasDistincts; }