summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_udiff_variation2.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Allow array_diff() and array_intersect() with single array argumentNikita Popov2020-09-091-25/+25
| | | | | | | | | | | | | | | | | | | Both of these functions are well-defined when used with a single array argument -- rejecting this case was an artificial limitation. This is not useful when called with explicit arguments, but removes edge-cases when used with argument unpacking: // OK even if $excludes is empty. array_diff($array, ...$excludes); // OK even if $arrays contains a single array only. array_intersect(...$arrays); This matches the behavior of functions like array_merge() and array_push(), which also allow calls with no array or a single array respectively. Closes GH-6097.
* Rename standard array function parameters to $arrayTyson Andre2020-08-111-28/+28
| | | | | | | | | | | | | | 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.
* Remove unnecessary PHPDoc-alike blocks from testsMáté Kocsis2020-06-241-6/+0
| | | | Closes GH-5759
* Improve type error messages when an object is givenMáté Kocsis2020-05-261-2/+2
| | | | | | | From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
* Improve argument error messages in ext/standardMáté Kocsis2020-03-181-25/+25
| | | | Closes GH-5198
* Reindent phpt filesNikita Popov2020-02-031-3/+3
|
* Clean DONE tags from testsFabien Villepinte2019-11-071-2/+0
| | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* Convert some warnings to TypeErrors in array functionsNikita Popov2019-05-311-78/+32
| | | | | This is manual type and argument number checking code that was not covered by the zpp move to TypeErrors.
* Trim trailing whitespace in *.phptPeter Kokot2018-10-141-2/+2
|
* Trim trailing whitespace in testsGabriel Caruso2018-10-141-1/+1
|
* Make array parsing parameters error messages consistency with ZPP failureGabriel Caruso2018-08-191-25/+25
|
* Array tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 ↵Ant Phillips2008-12-021-0/+227
bit).