Skip to content

Commit 5a88fb6

Browse files
committed
Fix incorrect reference
1 parent 08e11ff commit 5a88fb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Query/Builder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use function array_fill_keys;
2828
use function array_is_list;
2929
use function array_key_exists;
30+
use function array_map;
3031
use function array_merge;
3132
use function array_values;
3233
use function array_walk_recursive;
@@ -1001,9 +1002,7 @@ protected function compileWheres(): array
10011002
if (isset($where['column']) && ($where['column'] === '_id' || str_ends_with($where['column'], '._id'))) {
10021003
if (isset($where['values'])) {
10031004
// Multiple values.
1004-
foreach ($where['values'] as &$value) {
1005-
$value = $this->convertKey($value);
1006-
}
1005+
$where['values'] = array_map($this->convertKey(...), $where['values']);
10071006
} elseif (isset($where['value'])) {
10081007
// Single value.
10091008
$where['value'] = $this->convertKey($where['value']);

0 commit comments

Comments
 (0)