From 52109e74cc338027e850741ec8214a462fe0e3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 25 Nov 2024 06:53:36 +0100 Subject: [PATCH] Only add our tags when there is none --- src/Visitor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Visitor.php b/src/Visitor.php index ac70153..f466cde 100644 --- a/src/Visitor.php +++ b/src/Visitor.php @@ -87,11 +87,11 @@ public function enterNode(Node $node) $additions = $this->generateAdditionalTagsFromDoc($docComment); if (count($additions) > 0) { $this->additionalTags[$symbolName] = $additions; - } - - $additions = $this->getAdditionalTagsFromMap($symbolName); - if (count($additions) > 0) { - $this->additionalTagStrings[$symbolName] = $additions; + } else { + $additions = $this->getAdditionalTagsFromMap($symbolName); + if (count($additions) > 0) { + $this->additionalTagStrings[$symbolName] = $additions; + } } if ($voidOrNever instanceof Type) {