Skip to content

Commit

Permalink
Merge pull request #158 from skipperbent/v4-development
Browse files Browse the repository at this point in the history
Fixed missing array-cast
  • Loading branch information
skipperbent authored Mar 6, 2024
2 parents afcb797 + b01b1be commit 22923ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -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));

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 22923ba

Please sign in to comment.