Skip to content

Commit

Permalink
skip remove for phpstan docs too
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Feb 18, 2022
1 parent 8fe459d commit ff364ec
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 (str_starts_with($node->name, '@psalm-')) {
if (str_starts_with($node->name, '@psalm-') || str_starts_with($node->name, '@phpstan-')) {
return null;
}

Expand Down

0 comments on commit ff364ec

Please sign in to comment.