Skip to content

Commit 9e8dbc1

Browse files
committed
ext/standard: fix wrong array_filter() default value
Follow-up to GH-21100, that mistakenly set the default value of the `array_filter()` as `ARRAY_FILTER_USE_KEY`, when it should be `ARRAY_FILTER_USE_VALUE`, which is the newly defined constant.
1 parent 605301c commit 9e8dbc1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ function array_product(array $array): int|float {}
18791879

18801880
function array_reduce(array $array, callable $callback, mixed $initial = null): mixed {}
18811881

1882-
function array_filter(array $array, ?callable $callback = null, int $mode = ARRAY_FILTER_USE_KEY): array {}
1882+
function array_filter(array $array, ?callable $callback = null, int $mode = ARRAY_FILTER_USE_VALUE): array {}
18831883

18841884
function array_find(array $array, callable $callback): mixed {}
18851885

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions_decl.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)