Commit c55ccae
Address review: reorder conditions and fix closure cache key collision
- Move $parametersAcceptor !== null check before hasSideEffects()->maybe()
for function calls
- Move $scope->isInClass() and getClassReflection()->is() checks before
hasSideEffects()->maybe() for static method calls
- Fix closure type cache key collision between PHPDoc-aware and native
scopes by including nativeTypesPromoted flag in getClosureScopeCacheKey()
- Revert native-types-81.php test expectations back to original values
Co-authored-by: Ondřej Mirtes <ondrejmirtes@users.noreply.github.com>1 parent 094662d commit c55ccae
File tree
3 files changed
+9
-6
lines changed- src/Analyser
- tests/PHPStan/Analyser/nsrt
3 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1043 | 1046 | | |
1044 | 1047 | | |
1045 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2941 | 2941 | | |
2942 | 2942 | | |
2943 | 2943 | | |
| 2944 | + | |
2944 | 2945 | | |
2945 | 2946 | | |
2946 | | - | |
2947 | 2947 | | |
2948 | 2948 | | |
2949 | 2949 | | |
| |||
3469 | 3469 | | |
3470 | 3470 | | |
3471 | 3471 | | |
3472 | | - | |
3473 | | - | |
3474 | 3472 | | |
3475 | 3473 | | |
3476 | 3474 | | |
| 3475 | + | |
| 3476 | + | |
3477 | 3477 | | |
3478 | 3478 | | |
3479 | 3479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments