From 96f2f3174bb7d3c5367b5a48817f485cef5ed71b Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Wed, 26 Aug 2020 17:20:22 -0500 Subject: Update array parameter names for named parameters * The array "subject" of a function gets called $array. * Further parameters should be self-descriptive if used as a named parameter, and a full word, not an abbreviation. * If there is a "bunch more arrays" variadic, it gets called $arrays (because that's what was already there). * A few functions have a variadic "a bunch more arrays, and then a callable", and were already called $rest. I left those as is and died a little inside. * Any callable provided to an array function that acts on the array is called $callback. (Nearly all were already, I just fixed the one or two outliers.) * array_multisort() is beyond help so I ran screaming. --- ext/standard/tests/array/array_fill_error.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/tests/array/array_fill_error.phpt') diff --git a/ext/standard/tests/array/array_fill_error.phpt b/ext/standard/tests/array/array_fill_error.phpt index d769298eab..9b04f75539 100644 --- a/ext/standard/tests/array/array_fill_error.phpt +++ b/ext/standard/tests/array/array_fill_error.phpt @@ -18,4 +18,4 @@ try { ?> --EXPECT-- *** Testing array_fill() : error conditions *** -array_fill(): Argument #2 ($num) must be greater than or equal to 0 +array_fill(): Argument #2 ($count) must be greater than or equal to 0 -- cgit v1.2.1