Commit bf04c05
Fix phpstan/phpstan#12430: Skip path validation for baseline entries
- Baseline entries (identified by having a 'count' key) with paths to
deleted/renamed files caused "is neither a directory, nor a file path,
nor a fnmatch pattern" errors during container initialization
- The message validation already skipped baseline entries but the path
validation did not
- Added the same 'count' check to skip baseline entries in the path
validation loop in ValidateIgnoredErrorsExtension1 parent 06ea1e1 commit bf04c05
File tree
3 files changed
+17
-0
lines changed- src/DependencyInjection
- tests/PHPStan/DependencyInjection
- invalidIgnoreErrors
3 files changed
+17
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments