Skip to content

Commit 9f77a27

Browse files
committed
skip final
1 parent 6972a3a commit 9f77a27

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/DeadCode/Rector/ClassMethod/RemoveParentDelegatingConstructorRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ public function refactor(Node $node): ?int
9898
return null;
9999
}
100100

101+
if ($node->isFinal()) {
102+
return null;
103+
}
104+
101105
$parentMethodReflection = $this->matchParentConstructorReflection($node);
102106
if (! $parentMethodReflection instanceof ExtendedMethodReflection) {
103107
return null;

0 commit comments

Comments
 (0)