Commit 33d76e7
Do not use the nullsafe operator in code downgraded to PHP 7.4
simple-downgrade leaves ?-> in place when it sits inside a larger
expression (a ternary arm, a concatenation, a method argument), so the
PHP 7.4 lint job parses those spots and fails. Spell the null checks out.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GNLiox4nj8c7YstGfsuZ391 parent e912959 commit 33d76e7
4 files changed
Lines changed: 11 additions & 6 deletions
File tree
- src/Analyser
- ExprHandler/Helper
- Generics
- tests/PHPStan/Analyser/Generics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
419 | 421 | | |
420 | | - | |
| 422 | + | |
421 | 423 | | |
422 | 424 | | |
423 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3807 | 3807 | | |
3808 | 3808 | | |
3809 | 3809 | | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
3813 | 3816 | | |
3814 | 3817 | | |
3815 | 3818 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments