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 2727use function array_fill_keys ;
2828use function array_is_list ;
2929use function array_key_exists ;
30+ use function array_map ;
3031use function array_merge ;
3132use function array_values ;
3233use function array_walk_recursive ;
@@ -1006,9 +1007,7 @@ protected function compileWheres(): array
10061007 if (isset ($ where ['column ' ]) && ($ where ['column ' ] === '_id ' || str_ends_with ($ where ['column ' ], '._id ' ))) {
10071008 if (isset ($ where ['values ' ])) {
10081009 // Multiple values.
1009- foreach ($ where ['values ' ] as &$ value ) {
1010- $ value = $ this ->convertKey ($ value );
1011- }
1010+ $ where ['values ' ] = array_map ($ this ->convertKey (...), $ where ['values ' ]);
10121011 } elseif (isset ($ where ['value ' ])) {
10131012 // Single value.
10141013 $ where ['value ' ] = $ this ->convertKey ($ where ['value ' ]);
You can’t perform that action at this time.
0 commit comments