Skip to content

Commit 6fa6844

Browse files
committed
clearer message
1 parent 6982a8d commit 6fa6844

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: tests/PHPStan/Analyser/InstanceMethodsParameterScopeFunctionRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function processNode(Node $node, Scope $scope): array
2727
}
2828

2929
return [
30-
RuleErrorBuilder::message(sprintf('Name %s found in method null', $node->toString()))->identifier('test.instanceOfMethodsParameterRule')->build(),
30+
RuleErrorBuilder::message(sprintf('Name %s found in scope-function null', $node->toString()))->identifier('test.instanceOfMethodsParameterRule')->build(),
3131
];
3232
}
3333

Diff for: tests/PHPStan/Analyser/InstanceMethodsParameterScopeFunctionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function testRule(): void
3030

3131
$this->analyse([__DIR__ . '/data/instance-methods-parameter-scope.php'], [
3232
[
33-
'Name DateTime found in method null',
33+
'Name DateTime found in scope-function null',
3434
12,
3535
],
3636
[
37-
'Name Baz\Waldo found in method null',
37+
'Name Baz\Waldo found in scope-function null',
3838
16,
3939
],
4040
]);

0 commit comments

Comments
 (0)