Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 3, 2024
1 parent d0dc2f0 commit b5233d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Levels/data/arithmeticOperators.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ public function doFoo(
$intOrLiteralNumericString = '123';
}

$int + $int;
$string + $int;
$literalNumericString + $int;
$intOrString + $int;
$intOrLiteralNumericString + $int;
$r = $int + $int;
$r = $string + $int;
$r = $literalNumericString + $int;
$r = $intOrString + $int;
$r = $intOrLiteralNumericString + $int;

$stringOrObject = $string;
if (rand(0, 1) === 0) {
$stringOrObject = new \stdClass();
}

$stringOrObject + $int;
$r = $stringOrObject + $int;

$unionOfLiterals = '123';
if (rand(0, 1) === 0) {
$unionOfLiterals = '456';
}

$unionOfLiterals + $int;
$r = $unionOfLiterals + $int;
}

}

0 comments on commit b5233d5

Please sign in to comment.