Commit 52788e6
Address review: add rule test and post-chain type assertions for bug-6934
- Add CallMethodsRule test to verify no parameter type error on
$node?->parentNode?->removeChild($node)
- Assert $node remains DOMNode|null after the nullsafe chain
- Assert $foo remains Foo|null after the nullsafe chain
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 824d1cd commit 52788e6
File tree
3 files changed
+22
-0
lines changed- tests/PHPStan
- Analyser/nsrt
- Rules/Methods
- data
3 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3945 | 3945 | | |
3946 | 3946 | | |
3947 | 3947 | | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
3948 | 3957 | | |
3949 | 3958 | | |
3950 | 3959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments