Commit 665aa3a
authored
Fix PHPStan 2.2 sealed array shape violations (#62)
PHPStan 2.2 enforces sealed array shapes more strictly, surfacing two
existing type mismatches:
- readExistingErrors() declared a return type without 'identifier', but
delegated to decodeBaseline() which includes it. Strip the key so the
runtime shape matches the declared type.
- SplitterTest::getSampleErrors() declared its ignoreErrors as
array{0: ...} (sealed, single index) but returned a list of 4 entries.
Co-Authored-By: Claude Code1 parent 9a70348 commit 665aa3a
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
0 commit comments