Skip to content

Commit 260b866

Browse files
committed
Switch array_fill*() arguments to be more self-descriptive.
1 parent c8a1f49 commit 260b866

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ function extract(array &$array, int $extract_type = EXTR_OVERWRITE, string $pref
126126
*/
127127
function compact($var_name, ...$var_names): array {}
128128

129-
function array_fill(int $start_key, int $num, mixed $val): array {}
129+
function array_fill(int $start_key, int $count, mixed $value): array {}
130130

131-
function array_fill_keys(array $keys, mixed $val): array {}
131+
function array_fill_keys(array $keys, mixed $value): array {}
132132

133133
/**
134134
* @param int|float|string $low

ext/standard/basic_functions_arginfo.h

Lines changed: 4 additions & 4 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: 42c15b158737b64ff9dede7275f4ae0937ab2347 */
2+
* Stub hash: 176e4b32ec422c9e457451eb367c8772aa838a5c */
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)
@@ -171,13 +171,13 @@ ZEND_END_ARG_INFO()
171171

172172
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_fill, 0, 3, IS_ARRAY, 0)
173173
ZEND_ARG_TYPE_INFO(0, start_key, IS_LONG, 0)
174-
ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0)
175-
ZEND_ARG_TYPE_INFO(0, val, IS_MIXED, 0)
174+
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
175+
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
176176
ZEND_END_ARG_INFO()
177177

178178
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_fill_keys, 0, 2, IS_ARRAY, 0)
179179
ZEND_ARG_TYPE_INFO(0, keys, IS_ARRAY, 0)
180-
ZEND_ARG_TYPE_INFO(0, val, IS_MIXED, 0)
180+
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
181181
ZEND_END_ARG_INFO()
182182

183183
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_range, 0, 2, IS_ARRAY, 0)

ext/standard/tests/array/array_fill_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ try {
1818
?>
1919
--EXPECT--
2020
*** Testing array_fill() : error conditions ***
21-
array_fill(): Argument #2 ($num) must be greater than or equal to 0
21+
array_fill(): Argument #2 ($count) must be greater than or equal to 0

0 commit comments

Comments
 (0)