Commit c1f041b
Update PHPStan config for 2.x compatibility
PHPStan 2.x changed how @mixin handles static return types: instead of
resolving static to the calling class, it resolves to the mixin type
itself (Mixin interface). This causes chain navigation methods (all(),
key(), property()) called after assertion methods to appear undefined on
the Mixin type, cascading into method.nonObject errors.
Remove the phpt file extension (no .phpt files remain after the switch
to PHPUnit integration tests). Retain the existing regex for undefined
Mixin method calls and add a new identifier-scoped rule to suppress the
cascading method.nonObject false positives in integration tests.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c20042d commit c1f041b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments