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 ;
@@ -1006,9 +1007,7 @@ protected function compileWheres(): array
1006
1007
if (isset ($ where ['column ' ]) && ($ where ['column ' ] === '_id ' || str_ends_with ($ where ['column ' ], '._id ' ))) {
1007
1008
if (isset ($ where ['values ' ])) {
1008
1009
// Multiple values.
1009
- foreach ($ where ['values ' ] as &$ value ) {
1010
- $ value = $ this ->convertKey ($ value );
1011
- }
1010
+ $ where ['values ' ] = array_map ($ this ->convertKey (...), $ where ['values ' ]);
1012
1011
} elseif (isset ($ where ['value ' ])) {
1013
1012
// Single value.
1014
1013
$ where ['value ' ] = $ this ->convertKey ($ where ['value ' ]);
You can’t perform that action at this time.
0 commit comments