Skip to content

Commit

Permalink
bugfix(#11241): Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVanSonsbeek committed Feb 10, 2025
1 parent e7b79b5 commit 9b6734d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,8 @@ private static function analyzeOperands(
}
}
} elseif ($parent instanceof VirtualPlus || $parent instanceof VirtualMinus) {
// This seems arbitrary defined as 1/-1, to facilitate loops
// and may need a better handling if there's issues
$sum = $parent instanceof VirtualPlus ? 1 : -1;
if ($context && $context->inside_loop && $left_type_part instanceof TLiteralInt) {
if ($parent instanceof VirtualPlus) {
Expand Down

0 comments on commit 9b6734d

Please sign in to comment.