Skip to content

Commit

Permalink
Adjust hierarchy fill
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Dec 31, 2024
1 parent f3235b3 commit f38cffb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Rule/DeadCodeRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ private function fillClassHierarchy(string $typeName, array $ancestorNames): voi
{
foreach ($ancestorNames as $ancestorName) {
$this->classHierarchy->registerClassPair($ancestorName, $typeName);

$this->fillClassHierarchy($typeName, $this->getAncestorNames($ancestorName));
}
}

Expand Down Expand Up @@ -554,7 +552,6 @@ private function getAncestorNames(string $typeName): array
{
return array_merge(
array_keys($this->typeDefinitions[$typeName]['parents'] ?? []),
array_keys($this->typeDefinitions[$typeName]['traits'] ?? []),
array_keys($this->typeDefinitions[$typeName]['interfaces'] ?? []),
);
}
Expand Down

0 comments on commit f38cffb

Please sign in to comment.