Skip to content

Commit e36e1cd

Browse files
committed
Result cache - export interface methods
1 parent 685b5cb commit e36e1cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Dependency/ExportedNodeResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ public function resolve(string $fileName, \PhpParser\Node $node): ?ExportedNode
126126
$methodName = $node->name->toString();
127127
$docComment = $node->getDocComment();
128128
$parentNode = $node->getAttribute('parent');
129-
if (!$parentNode instanceof Class_ || !isset($parentNode->namespacedName)) {
129+
$continue = ($parentNode instanceof Class_ || $parentNode instanceof Node\Stmt\Interface_) && isset($parentNode->namespacedName);
130+
if (!$continue) {
130131
return null;
131132
}
132133

0 commit comments

Comments
 (0)