Skip to content

Commit 162e212

Browse files
committed
Unknown PHPDoc @param - add error identifier
1 parent 5d439d4 commit 162e212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/PhpDoc/IncompatiblePhpDocTypeRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function processNode(Node $node, Scope $scope): array
7373
$errors[] = RuleErrorBuilder::message(sprintf(
7474
'PHPDoc tag @param references unknown parameter: $%s',
7575
$parameterName
76-
))->build();
76+
))->identifier('phpDoc.unknownParameter')->metadata(['parameterName' => $parameterName])->build();
7777

7878
} elseif (
7979
$phpDocParamType instanceof ErrorType

0 commit comments

Comments
 (0)