File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
tests/PHPStan/Levels/data Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ public function doFoo(
18
18
$ stringOrObject
19
19
)
20
20
{
21
- $ int + $ int ;
22
- $ int + $ intOrString ;
23
- $ int + $ stringOrObject ;
24
- $ int + $ string ;
25
- $ string + $ string ;
26
- $ intOrString + $ stringOrObject ;
27
- $ intOrString + $ string ;
28
- $ stringOrObject + $ stringOrObject ;
21
+ $ result = $ int + $ int ;
22
+ $ result = $ int + $ intOrString ;
23
+ $ result = $ int + $ stringOrObject ;
24
+ $ result = $ int + $ string ;
25
+ $ result = $ string + $ string ;
26
+ $ result = $ intOrString + $ stringOrObject ;
27
+ $ result = $ intOrString + $ string ;
28
+ $ result = $ stringOrObject + $ stringOrObject ;
29
29
}
30
30
31
31
}
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ public function doFoo(
26
26
$ mixed
27
27
)
28
28
{
29
- clone $ int ;
30
- clone $ intOrString ;
31
- clone $ foo ;
32
- clone $ nullableFoo ;
33
- clone $ fooOrInt ;
34
- clone $ nullableInt ;
35
- clone $ nullableUnion ;
36
- clone $ mixed ;
29
+ $ result = clone $ int ;
30
+ $ result = clone $ intOrString ;
31
+ $ result = clone $ foo ;
32
+ $ result = clone $ nullableFoo ;
33
+ $ result = clone $ fooOrInt ;
34
+ $ result = clone $ nullableInt ;
35
+ $ result = clone $ nullableUnion ;
36
+ $ result = clone $ mixed ;
37
37
}
38
38
39
39
}
You can’t perform that action at this time.
0 commit comments