Skip to content

Commit d3668d4

Browse files
committed
InvalidPHPStanDocTagRule - changed wording
1 parent 18d849e commit d3668d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Rules/PhpDoc/InvalidPHPStanDocTagRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function processNode(Node $node, Scope $scope): array
7474
}
7575

7676
$errors[] = RuleErrorBuilder::message(sprintf(
77-
'Encountered unknown tag that had the phpstan prefix: %s',
77+
'Unknown PHPDoc tag: %s',
7878
$phpDocTag->name
7979
))->build();
8080
}

tests/PHPStan/Rules/PhpDoc/InvalidPHPStanDocTagRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public function testRule(): void
2323
{
2424
$this->analyse([__DIR__ . '/data/invalid-phpstan-doc.php'], [
2525
[
26-
'Encountered unknown tag that had the phpstan prefix: @phpstan-extens',
26+
'Unknown PHPDoc tag: @phpstan-extens',
2727
7,
2828
],
2929
[
30-
'Encountered unknown tag that had the phpstan prefix: @phpstan-pararm',
30+
'Unknown PHPDoc tag: @phpstan-pararm',
3131
14,
3232
],
3333
]);

0 commit comments

Comments
 (0)