From 83445da8b2267a86e97926563b81ed20e6c48961 Mon Sep 17 00:00:00 2001 From: Amast Date: Thu, 12 Dec 2019 14:15:02 +0800 Subject: [PATCH] Fix equals --- src/Utils/Decimal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/Decimal.php b/src/Utils/Decimal.php index 91fd371..7ec003c 100644 --- a/src/Utils/Decimal.php +++ b/src/Utils/Decimal.php @@ -60,7 +60,7 @@ class Decimal function equals($v): bool { - return (new Decimal($v))->getSource() == $this->source; + return (new Decimal($v))->getSource() == new Decimal($this->source); } function toDecimalPlaces(int $dp)