Skip to content

Commit

Permalink
Improve big integer number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 17, 2023
1 parent 499e33d commit 894ec2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function toInt(): int
}

public function plus(
self $count
self $that
): self {
$sum = $this->toInt() + $count->toInt();
$sum = $this->toInt() + $that->toInt();

if (!is_int($sum)) {
throw new \InvalidArgumentException(
Expand Down

0 comments on commit 894ec2f

Please sign in to comment.