From b01b1bed3dc738c45db98b4cf4ce867e57d8a153 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 6 Mar 2024 13:20:30 +0100 Subject: [PATCH] Fixed missing array-cast --- src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }