File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 27
27
use function array_fill_keys ;
28
28
use function array_is_list ;
29
29
use function array_key_exists ;
30
+ use function array_map ;
30
31
use function array_merge ;
31
32
use function array_values ;
32
33
use function array_walk_recursive ;
@@ -1001,9 +1002,7 @@ protected function compileWheres(): array
1001
1002
if (isset ($ where ['column ' ]) && ($ where ['column ' ] === '_id ' || str_ends_with ($ where ['column ' ], '._id ' ))) {
1002
1003
if (isset ($ where ['values ' ])) {
1003
1004
// Multiple values.
1004
- foreach ($ where ['values ' ] as &$ value ) {
1005
- $ value = $ this ->convertKey ($ value );
1006
- }
1005
+ $ where ['values ' ] = array_map ($ this ->convertKey (...), $ where ['values ' ]);
1007
1006
} elseif (isset ($ where ['value ' ])) {
1008
1007
// Single value.
1009
1008
$ where ['value ' ] = $ this ->convertKey ($ where ['value ' ]);
You can’t perform that action at this time.
0 commit comments