Skip to content

Commit 80fda5f

Browse files
committed
[skip ci] Update UPGRADING in regards to iterable compile time alias
1 parent b40ae80 commit 80fda5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

UPGRADING

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ PHP 8.2 UPGRADE NOTES
274274
13. Other Changes
275275
========================================
276276

277+
- Core:
278+
. The iterable type is now a built-in compile time alias for array|Traversable.
279+
Error messages relating to iterable will therefore now use array|Traversable.
280+
Type Reflection is preserved for single iterable (and ?iterable) to produce
281+
a ReflectionNamedType with name iterable, however usage of iterable in
282+
union types will be converted to array|Traversable
283+
277284
========================================
278285
14. Performance Improvements
279286
========================================

0 commit comments

Comments
 (0)