Commit 5cda01b
Add tests for MethodCallReturnTypeHelper fallback on static calls
Tests the generic fallback logic in MethodCallReturnTypeHelper for
static method calls on union types where only some classes are handled
by dynamic return type extensions. Uses BackedEnum::from() as the
extension-handled case and a plain class as the unhandled fallback case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3847d6a commit 5cda01b
File tree
1 file changed
+27
-0
lines changed- tests/PHPStan/Analyser/nsrt
1 file changed
+27
-0
lines changedLines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments