Re: ReflectionType for iterable / PHP 8.2
| From: | Levi Morrison via internals | Date: | Wed, 02 Nov 2022 22:31:26 +0000 |
| Subject: | Re: ReflectionType for iterable / PHP 8.2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118946@lists.php.net to get a copy of this message | ||
FYI, it is also noted in the [UPGRADING][1] file:
> - 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
[1]: https://github.com/php/php-src/blob/PHP-8.2/UPGRADING