Skip to content

Commit 538a3b7

Browse files
committed
Fix message
1 parent 9cbba20 commit 538a3b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Analyser/IgnoredErrorHelperResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function process(
139139
if ($shouldBeIgnored) {
140140
if (!$error->canBeIgnored()) {
141141
$addErrors[] = sprintf(
142-
'Error message "%s" cannot be ignored, use excludes_analyse instead.',
142+
'Error message "%s" cannot be ignored, use excludePaths instead.',
143143
$error->getMessage()
144144
);
145145
return true;

tests/PHPStan/Analyser/AnalyserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testIgnoringBrokenConfigurationDoesNotWork(): void
6565
$this->assertCount(2, $result);
6666
assert($result[0] instanceof Error);
6767
$this->assertSame('Class PHPStan\Tests\Baz was not found while trying to analyse it - autoloading is probably not configured properly.', $result[0]->getMessage());
68-
$this->assertSame('Error message "Class PHPStan\Tests\Baz was not found while trying to analyse it - autoloading is probably not configured properly." cannot be ignored, use excludes_analyse instead.', $result[1]);
68+
$this->assertSame('Error message "Class PHPStan\Tests\Baz was not found while trying to analyse it - autoloading is probably not configured properly." cannot be ignored, use excludePaths instead.', $result[1]);
6969
}
7070

7171
public function testIgnoreErrorByPath(): void

0 commit comments

Comments
 (0)