We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96f17b commit 65a5889Copy full SHA for 65a5889
src/Rules/Traits/TraitAttributesRule.php
@@ -50,7 +50,7 @@ public function processNode(Node $node, Scope $scope): array
50
$classReflection = $this->reflectionProvider->getClass($traitName->toString());
51
if (count($classReflection->getNativeReflection()->getAttributes('AllowDynamicProperties')) > 0) {
52
$errors[] = RuleErrorBuilder::message('Attribute class AllowDynamicProperties cannot be used with trait.')
53
- ->identifier('class.allowDynamicPropertiesTrait')
+ ->identifier('trait.allowDynamicProperties')
54
->nonIgnorable()
55
->build();
56
}
0 commit comments