Re: [PSR-5][PSR-19] Is there a way to annotate interface that acts as iterator over some type?

2018-10-17 Thread Woody Gilk
Wouldn't the simple solution be: /** @var $stream Item[] */ foreach ($stream as $item) { /* ... */ } On Tuesday, October 16, 2018 at 2:02:21 PM UTC-5, Alan Gabriel Bem wrote: > > I think you missed my point - What I want to achieve is to *annotate* > somehow that *Stream* is *iterable* over

[PSR-5][PSR-19] Weekly Update

2018-10-17 Thread Chuck Burgess
Hello everyone, Over the last few weeks, I blew the dust off of many leftover conversations from PSR-5's first effort, housed in a fork of the FIG repo that lived in the phpDocumentor organization [1]. There were lots of old discussions on Issues and Pull Requests there. I was able to stir up so