]> granicus.if.org Git - php/commit
Allow attributes to be applied to property/constant groups
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 22 Sep 2020 12:44:06 +0000 (14:44 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 27 Sep 2020 09:35:48 +0000 (11:35 +0200)
commit36ed9966ce791676dd435fd3ee5fc67a17bc09b2
tree61acdbe5978158b6b2255e42a1fb24685dd9017c
parent2772751b58ee579a8f1288a0949e5e1fcb554877
Allow attributes to be applied to property/constant groups

Remove arbitrary restriction that attributes cannot be applied
to property/constant groups.

The attribute applies to all elements of the group, just like
modifiers and types do.

See also https://externals.io/message/111914.

Closes GH-6186.
Zend/tests/attributes/014_class_const_group.phpt
Zend/tests/attributes/015_property_group.phpt
Zend/zend_compile.c