Skip to content

Commit

Permalink
Improved $iteration type to avoid mutation into negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Feb 5, 2025
1 parent e8ea0e5 commit ebf9e5f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private function reFetchObject(object $object): object
return $freshValue;
}

/** @param int<0, max> $iteration */
private function clearBatch(int $iteration): void
{
if ($iteration % $this->batchSize) {
Expand Down

0 comments on commit ebf9e5f

Please sign in to comment.