diff --git a/src/Dependency/ExportedNodeResolver.php b/src/Dependency/ExportedNodeResolver.php index 406c937d9f..0b3981c736 100644 --- a/src/Dependency/ExportedNodeResolver.php +++ b/src/Dependency/ExportedNodeResolver.php @@ -100,7 +100,9 @@ public function resolve(string $fileName, \PhpParser\Node $node): ?ExportedNode } if ($node instanceof \PhpParser\Node\Stmt\Interface_ && isset($node->namespacedName)) { - $extendsNames = []; + $extendsNames = array_map(static function (Name $name): string { + return (string) $name; + }, $node->extends); $docComment = $node->getDocComment(); $interfaceName = $node->namespacedName->toString();