Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 4, 2024
1 parent d908859 commit e45dd3a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions tests/PHPStan/Levels/data/binaryOps.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public function doFoo(
$stringOrObject
)
{
$int + $int;
$int + $intOrString;
$int + $stringOrObject;
$int + $string;
$string + $string;
$intOrString + $stringOrObject;
$intOrString + $string;
$stringOrObject + $stringOrObject;
$result = $int + $int;
$result = $int + $intOrString;
$result = $int + $stringOrObject;
$result = $int + $string;
$result = $string + $string;
$result = $intOrString + $stringOrObject;
$result = $intOrString + $string;
$result = $stringOrObject + $stringOrObject;
}

}
16 changes: 8 additions & 8 deletions tests/PHPStan/Levels/data/clone.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public function doFoo(
$mixed
)
{
clone $int;
clone $intOrString;
clone $foo;
clone $nullableFoo;
clone $fooOrInt;
clone $nullableInt;
clone $nullableUnion;
clone $mixed;
$result = clone $int;
$result = clone $intOrString;
$result = clone $foo;
$result = clone $nullableFoo;
$result = clone $fooOrInt;
$result = clone $nullableInt;
$result = clone $nullableUnion;
$result = clone $mixed;
}

}

0 comments on commit e45dd3a

Please sign in to comment.