[Flow] [RFC] CGL: Allow "ArrayElementType[]" syntax

Alexander Berl a.berl at outlook.com
Fri Feb 27 22:27:13 CET 2015


There is currently a PSR in the works, which at the current time, would
suggest the definition as is currently used in flow, though there's a
big discussion about it:
https://github.com/phpDocumentor/fig-standards/issues/47

Am 27.02.2015 um 11:05 schrieb Bastian Waidelich:

> And I think that's perfectly fine (it would be even better if IDEs like
> PhpStorm would support that syntax, too and there are similar feature
> requests [1]).

I think this will be solved when the PSR is finished and the syntax is
"standardized". IDEs will then adapt and support that style pretty soon
I'd guess.

> What do you think about the following:
> We don't change the CGL in that regard but we're free to use the
> "array-syntax" if it increases readability. In addition I'll try to add
> reflection/property mapping support for it so that it *could* be used in
> action arguments and injections too!?

I'd rather spend efforts on things more important than supporting a
docblock syntax that might be "non-standard" soon. But it's of course
your decision to spend time on that :)

Regards,
Alex


More information about the Flow mailing list