Skip to content

Commit d22c6f1

Browse files
committed
Remove unneeded cast to array
As discussed on GitHub PR #5138, $this->binds is not expected to be something else than an array.
1 parent b8fe16d commit d22c6f1

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)