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 ;
@@ -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 ' ]);
You can’t perform that action at this time.
0 commit comments