nikic/php-ast

Support ZEND_AST_ATTRIBUTE_GROUP for #[Attr1, Attr2]

Closed this issue · 1 comments

It seems mildly useful for php-src to have ZEND_AST_ATTRIBUTE_GROUP for assert() expression representation output to correspond with expressions containing closures or anonymous classes.

The patch for the @[ attributes syntax introduced ZEND_AST_ATTRIBUTE_GROUP with that as one of the reasons.
assert((@[A1]@[A2,A3]function(){ ... })());

Closed by #173