Skip to content

Commit

Permalink
fix check error on 0475176
Browse files Browse the repository at this point in the history
  • Loading branch information
smaddock committed Apr 24, 2024
1 parent 0475176 commit 533ecf3
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/phpDocumentor/Descriptor/MethodDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,9 @@ private function recurseClassInheritance(ClassInterface $currentClass): MethodIn
}
}

/** @var Collection<InterfaceInterface|Fqsen>|null $parentInterfaces */
$parentInterfaces = $currentClass->getInterfaces();
/** @var Collection<InterfaceInterface>|null $parentInterfaces */
$parentInterfaces = $currentClass->getInterfaces()->filter(InterfaceInterface::class);
foreach ($parentInterfaces as $parentInterface) {
if ($parentInterface instanceof Fqsen) {
continue;
}

/** @var MethodInterface|null $parentInterfaceMethod */
$parentInterfaceMethod = $parentInterface->getMethods()->fetch($this->getName());
if ($parentInterfaceMethod instanceof self) {
Expand All @@ -290,13 +286,9 @@ private function recurseClassInheritance(ClassInterface $currentClass): MethodIn

private function recurseInterfaceInheritance(InterfaceInterface $currentInterface): MethodInterface|null
{
/** @var Collection<InterfaceInterface|Fqsen>|null $parentInterfaces */
$parentInterfaces = $currentInterface->getParent();
/** @var Collection<InterfaceInterface>|null $parentInterfaces */
$parentInterfaces = $currentInterface->getParent()->filter(InterfaceInterface::class);
foreach ($parentInterfaces as $parentInterface) {
if ($parentInterface instanceof Fqsen) {
continue;
}

/** @var MethodInterface|null $parentInterfaceMethod */
$parentInterfaceMethod = $parentInterface->getMethods()->fetch($this->getName());
if ($parentInterfaceMethod instanceof self) {
Expand Down

0 comments on commit 533ecf3

Please sign in to comment.