summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING8
1 files changed, 8 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 3d37c2db25..f98ae50d1b 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -771,6 +771,14 @@ PHP 8.0 UPGRADE NOTES
. Sorting functions are now stable, which means that equal-comparing elements
will retain their original order.
RFC: https://wiki.php.net/rfc/stable_sorting
+ . array_diff(), array_intersect() and their variations can now be used with
+ a single array as argument. This means that usages like the following are
+ now possible:
+
+ // OK even if $excludes is empty.
+ array_diff($array, ...$excludes);
+ // OK even if $arrays only contains a single array.
+ array_intersect(...$arrays);
- Zip:
. Extension updated to version 1.19.0