We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a2208 commit f17d94dCopy full SHA for f17d94d
tests/PHPStan/Analyser/AnalyserTest.php
@@ -467,6 +467,21 @@ public function testIgnoreErrorInTraitUsingClassFilePath(string $pathToIgnore):
467
$this->assertNoErrors($result);
468
}
469
470
+ #[DataProvider('dataIgnoreErrorInTraitUsingClassFilePath')]
471
+ public function testIgnoreErrorInTraitUsingClassFilePathWithPartialAnalysis(string $pathToIgnore): void
472
+ {
473
+ $ignoreErrors = [
474
+ [
475
+ 'message' => '#Fail\.#',
476
+ 'path' => $pathToIgnore,
477
+ ],
478
+ ];
479
+ $result = $this->runAnalyser($ignoreErrors, true, [
480
+ __DIR__ . '/data/traits-ignore/Foo.php',
481
+ ], true);
482
+ $this->assertNoErrors($result);
483
+ }
484
+
485
public function testIgnoredErrorMissingMessage(): void
486
{
487
$ignoreErrors = [
0 commit comments