--TEST-- Attributes can be applied to groups of properties --FILE-- getAttributes()[0]; var_dump($ra1->getName(), $ra1->getArguments()); $rp2 = new ReflectionProperty('C', 'y'); $ra2 = $rp2->getAttributes()[0]; var_dump($ra2->getName(), $ra2->getArguments()); ?> --EXPECT-- string(1) "A" array(2) { [0]=> int(1) [1]=> int(2) } string(1) "A" array(2) { [0]=> int(1) [1]=> int(2) }