Skip to content

Commit cca6c96

Browse files
committed
Change to the more standard
1 parent 9b051c3 commit cca6c96

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ function min(mixed $arg, mixed ...$args): mixed {}
109109

110110
function max(mixed $arg, mixed ...$args): mixed {}
111111

112-
function array_walk(array|object &$input, callable $funcname, mixed $userdata = UNKNOWN): bool {}
112+
function array_walk(array|object &$input, callable $callback, mixed $userdata = UNKNOWN): bool {}
113113

114-
function array_walk_recursive(array|object &$input, callable $funcname, mixed $userdata = UNKNOWN): bool {}
114+
function array_walk_recursive(array|object &$input, callable $callback, mixed $userdata = UNKNOWN): bool {}
115115

116116
function in_array(mixed $needle, array $haystack, bool $strict = false): bool {}
117117

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 5fab2b2a7187bff9619dd0fd214fe2b03165cef5 */
2+
* Stub hash: a9ee4ae1e7651a728a6d397d8608f109e27af01e */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -140,7 +140,7 @@ ZEND_END_ARG_INFO()
140140

141141
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_walk, 0, 2, _IS_BOOL, 0)
142142
ZEND_ARG_TYPE_MASK(1, input, MAY_BE_ARRAY|MAY_BE_OBJECT, NULL)
143-
ZEND_ARG_TYPE_INFO(0, funcname, IS_CALLABLE, 0)
143+
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
144144
ZEND_ARG_TYPE_INFO(0, userdata, IS_MIXED, 0)
145145
ZEND_END_ARG_INFO()
146146

ext/standard/tests/array/array_walk_recursive_variation8.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ bool(true)
3535
-- With 'min' built-in function --
3636
bool(true)
3737
-- With 'echo' language construct --
38-
array_walk_recursive(): Argument #2 ($funcname) must be a valid callback, function "echo" not found or invalid function name
38+
array_walk_recursive(): Argument #2 ($callback) must be a valid callback, function "echo" not found or invalid function name
3939
Done

ext/standard/tests/array/array_walk_variation8.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ bool(true)
3535
-- With 'min' built-in function --
3636
bool(true)
3737
-- With 'echo' language construct --
38-
array_walk(): Argument #2 ($funcname) must be a valid callback, function "echo" not found or invalid function name
38+
array_walk(): Argument #2 ($callback) must be a valid callback, function "echo" not found or invalid function name
3939
Done

0 commit comments

Comments
 (0)