From d53a9a111b3c9984b0524ca0fb287fb4709df29c Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 25 May 2021 15:58:32 +0200 Subject: [PATCH] Result cache - fix noticing changed extended interfaces --- src/Dependency/ExportedNodeResolver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();