Skip to content

Commit

Permalink
Only add our tags when there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Nov 25, 2024
1 parent 27415de commit 52109e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 52109e7

Please sign in to comment.