Hi

Am 2024-11-26 12:00, schrieb Marco Pivetta:
Is `Traversable|array` an alias of `iterable`? Is it **always** like that?

Since PHP 8.2 `iterable` is internally transformed into `Traversable|array` on the engine level: https://github.com/php/php-src/pull/7309. `iterable` no longer exists as a type since then. But even before that it was *semantically* identical, but technically it was a distinct type.

Best regards
Tim Düsterhus

Reply via email to