Skip to content

Commit 65a5889

Browse files
ondrejmirtesstaabm
andauthored
Update TraitAttributesRule.php
Co-authored-by: Markus Staab <[email protected]>
1 parent b96f17b commit 65a5889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Traits/TraitAttributesRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function processNode(Node $node, Scope $scope): array
5050
$classReflection = $this->reflectionProvider->getClass($traitName->toString());
5151
if (count($classReflection->getNativeReflection()->getAttributes('AllowDynamicProperties')) > 0) {
5252
$errors[] = RuleErrorBuilder::message('Attribute class AllowDynamicProperties cannot be used with trait.')
53-
->identifier('class.allowDynamicPropertiesTrait')
53+
->identifier('trait.allowDynamicProperties')
5454
->nonIgnorable()
5555
->build();
5656
}

0 commit comments

Comments
 (0)