Skip to content

Commit ec23934

Browse files
authored
Merge pull request #5379 from vlakoff/db-query-3
Remove unneeded cast to array
2 parents b8fe16d + d22c6f1 commit ec23934

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

system/Database/Query.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,13 @@ public function getOriginalQuery(): string
273273
*/
274274
protected function compileBinds()
275275
{
276-
$sql = $this->finalQueryString;
276+
$sql = $this->finalQueryString;
277+
$binds = $this->binds;
277278

278-
if (empty($this->binds)) {
279+
if (empty($binds)) {
279280
return;
280281
}
281282

282-
$binds = (array) $this->binds;
283-
284283
if (is_int(array_key_first($binds))) {
285284
$bindCount = count($binds);
286285
$ml = strlen($this->bindMarker);

0 commit comments

Comments
 (0)