Skip to content

Commit 7407a58

Browse files
ArshidArshid
authored andcommitted
FinalPropertyPromotionRector
1 parent 8d837c8 commit 7407a58

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/Php85/Rector/Class_/FinalPropertyPromotionRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public function refactor(Node $node): ?Node
7373
if ($node->isFinal()) {
7474
return null;
7575
}
76+
77+
if ($node->isAnonymous()) {
78+
return null;
79+
}
7680

7781
$constructClassMethod = $node->getMethod(MethodName::CONSTRUCT);
7882

0 commit comments

Comments
 (0)