Closed zonuexe closed 5 years ago
It should also be valid to write iterable<string>
, iterable<int, string>
etc.
I think this is legit...
PhpStorm has support for iterable
for about 2 years
https://youtrack.jetbrains.com/issue/WI-32378
as to type parametrisation... IMO this topic desires very special discussion.
PR #163 issued for this.
iterable
pseudo-type is added in PHP 7.1. see http://php.net/manual/en/migration71.new-features.phpI propose to add
iterable
into Appendix A. Types.