Commit 094662d
Fix CS, PHPStan, and test failures
- Add missing `use function assert;` import in MutatingScope.php
- Add @template generic type annotations to PossiblyImpureTipHelper::addTip()
- Update ElseIfConstantConditionRuleTest::testBug6947 expected tip to include
possibly-impure tip alongside treatPhpDocTypesAsCertain tip
- Fix native-types-81.php: closures with `: string` return type now correctly
resolve to native type `string` instead of `non-empty-string` (the previous
`non-empty-string` was due to a closure type cache key collision between
regular and native-promoted scopes)
Co-authored-by: Ondřej Mirtes <ondrejmirtes@users.noreply.github.com>1 parent 2abd912 commit 094662d
File tree
4 files changed
+10
-3
lines changed- src
- Analyser
- Rules/Comparison
- tests/PHPStan
- Analyser/nsrt
- Rules/Comparison
4 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
| 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 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments