--TEST-- Attributes on promoted properties are assigned to both the property and parameter --FILE-- getAttributes()[0]->getName()); $param = new ReflectionParameter([Test::class, '__construct'], 'num'); var_dump($param->getAttributes()[0]->getName()); ?> --EXPECT-- string(11) "NonNegative" string(11) "NonNegative"