Re: [PSR-5] Intersection Types

2018-11-12 Thread Alexey Gopachenko
ver | rather than needing parens if they were > equal precedence. > > > Alexey, you suggest that the two cannot be used together at all... is the > &-before-| option not workable from your perspective? > > CRB > *about.me/ashnazg <http://about.me/ashnazg>* >

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

2018-11-12 Thread Alexey Gopachenko
Gents, in PhpStorm we had to specifically implement support for `Stream` implementing some magic interfaces public final static Map ARRAY_VALUE_PROVIDERS; static{ ARRAY_VALUE_PROVIDERS = new LinkedHashMap<>(); ARRAY_VALUE_PROVIDERS.put("\\Iterator", "#M#C*.current"); ARRAY_VALUE_PROVIDERS.p

Re: [PSR-5] Intersection Types

2018-11-12 Thread Alexey Gopachenko
Actually I'm just so happy to see that you guys reached this conclusion - I was preparing a big post with some statistics about how hard we must work to deliver something so controversial and that it will take a HUGE toll on everyone even not using the stuff - both from point of making a compliant

Re: [PSR-5] Intersection Types

2018-10-24 Thread Alexey Gopachenko
PhpStorm always allowed spaces around operators, but will never generate them. On Tuesday, October 23, 2018 at 3:09:19 PM UTC+2, Chuck Burgess wrote: > > Having both operators at different levels would mean that combinations > such as `@param (A|B)&C $test` would have to be written as `@param A&

Re: PSR status update

2018-03-19 Thread Alexey Gopachenko
JetBrains PhpStorm development lead here. I would like to participate in PSR-5 (and actually all others) from perspective of tool-ability and consistency of introduced features and specs. I personally have created and still maintaining PhpStorm static analysers/type inference engine and other fe