Skip to content

Commit fa33c0c

Browse files
committed
Fix phpstan
1 parent 8888c4e commit fa33c0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rules/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function refactor(Node $node): ?Node
134134
);
135135

136136
if ($node instanceof ClassMethod && $annotationWithValueToAttribute->getIsOnClassLevel() && $this->currentClass instanceof Class_) {
137+
Assert::isInstanceOf($this->currentClass, Class_::class);
137138
$this->currentClass->attrGroups = array_merge($this->currentClass->attrGroups, [$attributeGroup]);
138139
} else {
139140
$node->attrGroups = array_merge($node->attrGroups, [$attributeGroup]);

0 commit comments

Comments
 (0)