1--TEST--
2Attributes can be applied to groups of properties
3--FILE--
4<?php
5
6class C
7{
8    #[A(1, X)]
9    public $x, $y;
10}
11
12const X = 2;
13
14$rp1 = new ReflectionProperty('C', 'x');
15$ra1 = $rp1->getAttributes()[0];
16var_dump($ra1->getName(), $ra1->getArguments());
17$rp2 = new ReflectionProperty('C', 'y');
18$ra2 = $rp2->getAttributes()[0];
19var_dump($ra2->getName(), $ra2->getArguments());
20
21?>
22--EXPECT--
23string(1) "A"
24array(2) {
25  [0]=>
26  int(1)
27  [1]=>
28  int(2)
29}
30string(1) "A"
31array(2) {
32  [0]=>
33  int(1)
34  [1]=>
35  int(2)
36}
37