Skip to content

Commit

Permalink
skip remove for psalm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Feb 17, 2022
1 parent e52d3a4 commit 8fe459d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function removeByType(string $typeToRemove): void
$typeToRemove
): ?int {
if ($node instanceof PhpDocTagNode && is_a($node->value, $typeToRemove, true)) {
if ($typeToRemove === VarTagValueNode::class && $node->name !== '@var') {
if (str_starts_with($node->name, '@psalm-')) {
return null;
}

Expand Down

0 comments on commit 8fe459d

Please sign in to comment.