summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_fill_error.phpt
diff options
context:
space:
mode:
authorLarry Garfield <larry@garfieldtech.com>2020-08-26 17:20:22 -0500
committerSara Golemon <pollita@php.net>2020-09-14 14:56:49 +0000
commit96f2f3174bb7d3c5367b5a48817f485cef5ed71b (patch)
treeed29f577f1b63d932737a1256ba0345bac68a315 /ext/standard/tests/array/array_fill_error.phpt
parent57a4a2c5a8ddd7e2f1214d5b05c270992e19451e (diff)
downloadphp-git-96f2f3174bb7d3c5367b5a48817f485cef5ed71b.tar.gz
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.
Diffstat (limited to 'ext/standard/tests/array/array_fill_error.phpt')
-rw-r--r--ext/standard/tests/array/array_fill_error.phpt2
1 files changed, 1 insertions, 1 deletions
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