php-src/Zend/tests/typehints
George Peter Banyard b40ae80804
Convert iterable into an internal alias for Traversable|array (#7309)
This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP variance handling.

The arginfo generation script from stubs is updated to produce a union type when it encounters the type ``iterable``
Extension functions which do not regenerate the arginfo, or write them manually are still supported by mimicking the compile time transformation while registering the function.

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``
2022-06-07 13:35:34 +01:00
..
bug76198.phpt
fq_nullable.phpt
fully_qualified_scalar.phpt
namespace_relative_scalar.phpt
or_null.phpt Convert iterable into an internal alias for Traversable|array (#7309) 2022-06-07 13:35:34 +01:00