Skip to content

Commit

Permalink
RequireParentConstructCallRule - fix abstract constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 2, 2022
1 parent f3ca646 commit c0b61e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Rules/Classes/RequireParentConstructCallRule.php
Expand Up @@ -39,6 +39,10 @@ public function processNode(Node $node, Scope $scope): array
return [];
}

if ($node->isAbstract()) {
return [];
}

$classReflection = $scope->getClassReflection()->getNativeReflection();
if ($classReflection->isInterface() || $classReflection->isAnonymous()) {
return [];
Expand Down

0 comments on commit c0b61e2

Please sign in to comment.