Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/PhpUnitFqcnAnnotationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function processNode(Node $node, Scope $scope): array
continue;
}
if (! $this->broker->hasClass($matches['className'])) {
$messages[] = RuleErrorBuilder::message(\sprintf('Class %s does not exist.', $matches['className']))->line($docComment->getStartLine() + $lineNumber)->build();
$messages[] = RuleErrorBuilder::message(\sprintf('Class %s does not exist.', $matches['className']))->identifier('phpunit.annotationClassNotFound')->line($docComment->getStartLine() + $lineNumber)->build();
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/UnusedVariableRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function processNode(Node $node, Scope $scope): array
? \sprintf('Function %s()', $node->name)
: 'Closure function',
$varName
))->line($var->getAttribute('startLine'))->build();
))->identifier('variable.unused')->line($var->getAttribute('startLine'))->build();
}
}

Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ parameters:
path: lib/UnusedVariableRule.php

-
message: '#^Parameter \#1 \$line of method PHPStan\\Rules\\RuleErrorBuilder\<PHPStan\\Rules\\RuleError\>\:\:line\(\) expects int, mixed given\.$#'
message: '#^Parameter \#1 \$line of method PHPStan\\Rules\\RuleErrorBuilder\<PHPStan\\Rules\\IdentifierRuleError\>\:\:line\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: lib/UnusedVariableRule.php
Expand Down
Loading