Re: Fwd: Type Collection
| From: | Rasmus Schultz | Date: | Mon, 30 Jan 2017 20:18:28 +0000 |
| Subject: | Re: Fwd: Type Collection | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98051@lists.php.net to get a copy of this message | ||
> Basically Foo[] to indicate an array of objects of type Foo
I would be fine with that, as long as it's sugar for array<Foo>
On Sun, Jan 29, 2017 at 4:51 PM, Sebastian Bergmann <sebastian@php.net>
wrote:
> Am 28.01.2017 um 17:10 schrieb Niklas Keller:
> > sounds like everything you want is typed arrays?
>
> I would love typed arrays. Basically Foo[] to indicate an array of objects
> of type Foo. IDEs such as PhpStorm as well as documentation tools already
> support this syntax when used in docblocks.
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>