1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00

[skip ci] Update UPGRADING in regards to iterable compile time alias

This commit is contained in:
George Peter Banyard
2022-06-07 13:48:47 +01:00
parent b40ae80804
commit 80fda5ff9e

View File

@@ -274,6 +274,13 @@ PHP 8.2 UPGRADE NOTES
13. Other Changes
========================================
- Core:
. The iterable type is now a built-in compile time alias for array|Traversable.
Error messages relating to iterable will therefore now use array|Traversable.
Type Reflection is preserved for single iterable (and ?iterable) to produce
a ReflectionNamedType with name iterable, however usage of iterable in
union types will be converted to array|Traversable
========================================
14. Performance Improvements
========================================