Skip to content

Commit e45dd3a

Browse files
committed
Fix tests
1 parent d908859 commit e45dd3a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

tests/PHPStan/Levels/data/binaryOps.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public function doFoo(
1818
$stringOrObject
1919
)
2020
{
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;
2929
}
3030

3131
}

tests/PHPStan/Levels/data/clone.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public function doFoo(
2626
$mixed
2727
)
2828
{
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;
3737
}
3838

3939
}

0 commit comments

Comments
 (0)