Skip to content

Commit

Permalink
use native PHP functions so we dont use getArrayableItems
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 15, 2021
1 parent e60b8da commit da7aa38
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3259,11 +3259,10 @@ public function addBinding($value, $type = 'where')
}

if (is_array($value)) {
$this->bindings[$type] = collect($this->bindings[$type])
->merge($value)
->map([$this, 'castBinding'])
->values()
->toArray();
$this->bindings[$type] = array_values(array_map(
[$this, 'castBinding'],
array_merge($this->bindings[$type], $value),
));
} else {
$this->bindings[$type][] = $this->castBinding($value);
}
Expand Down

0 comments on commit da7aa38

Please sign in to comment.