Commit 12bdb77
Add throw-points test for mixed~null (non-nullable) nullsafe method call
Add a companion test case where the left operand of ?-> is mixed~null
(obtained via null-narrowing). Since the value can never be null, ?->
never short-circuits and variables assigned in arguments have Yes certainty.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1d91140 commit 12bdb77
File tree
1 file changed
+14
-0
lines changed- tests/PHPStan/Analyser/nsrt/throw-points/php8
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
| |||
0 commit comments