diff --git a/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php b/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php index aac24b7d456..4d3abef0b80 100644 --- a/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php +++ b/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php @@ -455,12 +455,6 @@ private function processProperty(Property $property, MutatingScope $mutatingScop $propertyProperty->default->setAttribute(AttributeKey::SCOPE, $mutatingScope); } } - - foreach ($property->attrGroups as $attrGroup) { - foreach ($attrGroup->attrs as $attribute) { - $attribute->setAttribute(AttributeKey::SCOPE, $mutatingScope); - } - } } private function processBinaryOp(BinaryOp $binaryOp, MutatingScope $mutatingScope): void