|
1 | 1 | parameters: |
2 | | - level: 6 |
3 | | - errorFormat: raw |
| 2 | + level: 8 |
4 | 3 |
|
5 | 4 | paths: |
6 | 5 | - src |
7 | 6 |
|
8 | 7 | excludePaths: |
9 | 8 | - src/Framework/FileMutator.php |
10 | 9 |
|
11 | | -includes: |
12 | | - - phpstan-baseline.neon |
| 10 | + ignoreErrors: |
| 11 | + - # DomQuery: PHP 8.4 Dom\Element API not in PHPStan stubs |
| 12 | + identifier: method.notFound |
| 13 | + path: src/Framework/DomQuery.php |
| 14 | + - # DomQuery: SimpleXMLElement subclass return types |
| 15 | + identifier: return.type |
| 16 | + path: src/Framework/DomQuery.php |
| 17 | + - # DomQuery: regex match group offsets |
| 18 | + identifier: offsetAccess.notFound |
| 19 | + path: src/Framework/DomQuery.php |
| 20 | + - # DomQuery: simplexml_import_dom accepts Dom\Node in PHP 8.4 |
| 21 | + identifier: argument.type |
| 22 | + path: src/Framework/DomQuery.php |
| 23 | + - # DomQuery: regex analysis false positive |
| 24 | + identifier: identical.alwaysFalse |
| 25 | + path: src/Framework/DomQuery.php |
| 26 | + |
| 27 | + - # Edge case: with a registered onFailure handler exception() may return a Throwable that is not T; the documented contract still holds for the throw-on-failure default behaviour. |
| 28 | + message: '#^Method Tester\\Assert\:\:exception\(\) should return \(T of Throwable\)\|null but returns Throwable\|null\.$#' |
| 29 | + identifier: return.type |
| 30 | + path: src/Framework/Assert.php |
| 31 | + |
| 32 | + - # Intentional: arrow/anonymous fn receives the file path via func_get_arg() so the included file is not given any local variables in scope. |
| 33 | + identifier: arguments.count |
| 34 | + paths: |
| 35 | + - src/Framework/DataProvider.php |
| 36 | + - src/Runner/CliTester.php |
| 37 | + |
| 38 | + - # Intentional: $runner is used inside the included --setup script, not in the closure body itself. |
| 39 | + identifier: closure.unusedUse |
| 40 | + path: src/Runner/CliTester.php |
| 41 | + |
| 42 | + - # Intentional infinite loop for the --watch mode. |
| 43 | + identifier: while.alwaysTrue |
| 44 | + path: src/Runner/CliTester.php |
| 45 | + |
| 46 | + - # False positive: $interrupted is mutated transitively through $this->testHandler->assess() -> Runner::finishTest(); PHPStan cannot track cross-method property mutation. |
| 47 | + identifier: if.alwaysFalse |
| 48 | + path: src/Runner/Runner.php |
0 commit comments