Commit 4f0994e
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 <[email protected]>1 parent 9ad6900 commit 4f0994e
File tree
3 files changed
+9
-5
lines changed- src/Analyser
- tests/PHPStan/Analyser/nsrt
3 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1053 | 1057 | | |
1054 | 1058 | | |
1055 | 1059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2924 | 2924 | | |
2925 | 2925 | | |
2926 | 2926 | | |
| 2927 | + | |
2927 | 2928 | | |
2928 | 2929 | | |
2929 | | - | |
2930 | 2930 | | |
2931 | 2931 | | |
2932 | 2932 | | |
| |||
3452 | 3452 | | |
3453 | 3453 | | |
3454 | 3454 | | |
3455 | | - | |
3456 | | - | |
3457 | 3455 | | |
3458 | 3456 | | |
3459 | 3457 | | |
| 3458 | + | |
| 3459 | + | |
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| |||
| 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