From 894ec2f761a51b3f0d0fb5cc1a093d501e8e5e5f Mon Sep 17 00:00:00 2001 From: Anton Komarev Date: Sun, 17 Sep 2023 10:38:09 +0300 Subject: [PATCH] Improve big integer number formatting --- src/Count.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Count.php b/src/Count.php index 939623e..6330014 100644 --- a/src/Count.php +++ b/src/Count.php @@ -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(