summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2020-08-10 19:48:41 -0400
committerTyson Andre <tysonandre775@hotmail.com>2020-08-11 19:11:59 -0400
commit1e9a5c67ef6d075df16d4183abf62e4c99b2f8c6 (patch)
tree351c1da7bb1c24ad030f5a18edc89c795e27cc22 /ext/standard/tests/array/array_intersect_ukey_variation2.phpt
parent10f660f0a51812ac62e8f03895944e895e553240 (diff)
downloadphp-git-1e9a5c67ef6d075df16d4183abf62e4c99b2f8c6.tar.gz
Rename standard array function parameters to $array
This is targeting 8.0. `$arg` seems like a poor choice of a name, especially if the function were to have arguments added. In many cases, the php.net documentation already has $array for these functions. E.g. https://www.php.net/manual/en/function.array-intersect.php I'd assume that since named arguments was added to 8.0 near the feature freeze, PHP's maintainers had planned to make the names consistent and gradually use the same name for docs and implementation.
Diffstat (limited to 'ext/standard/tests/array/array_intersect_ukey_variation2.phpt')
-rw-r--r--ext/standard/tests/array/array_intersect_ukey_variation2.phpt106
1 files changed, 53 insertions, 53 deletions
diff --git a/ext/standard/tests/array/array_intersect_ukey_variation2.phpt b/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
index bd85523c89..7dd5d4c459 100644
--- a/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
+++ b/ext/standard/tests/array/array_intersect_ukey_variation2.phpt
@@ -91,7 +91,7 @@ $inputs = array(
'resource var' => $fp,
);
-// loop through each element of the array for arr2
+// loop through each element of the array for array2
foreach($inputs as $key =>$value) {
echo "\n--$key--\n";
@@ -113,105 +113,105 @@ fclose($fp);
*** Testing array_intersect_ukey() : usage variation ***
--int 0--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
--int 1--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
--int 12345--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
--int -12345--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, int given
--float 10.5--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
--float -10.5--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
--float 12.3456789000e10--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
--float -12.3456789000e10--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
--float .5--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, float given
--uppercase NULL--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
--lowercase null--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
--lowercase true--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
--lowercase false--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
--uppercase TRUE--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
--uppercase FALSE--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, bool given
--empty string DQ--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--empty string SQ--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--string DQ--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--string SQ--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--mixed case string--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--heredoc--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, string given
--instance of classWithToString--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithToString given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, classWithToString given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, classWithToString given
--instance of classWithoutToString--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, classWithoutToString given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, classWithoutToString given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, classWithoutToString given
--undefined var--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
--unset var--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, null given
--resource var--
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, resource given
-array_intersect_ukey(): Argument #2 ($arr2) must be of type array, resource given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, resource given
+array_intersect_ukey(): Argument #2 ($array2) must be of type array, resource given