We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f2bd7 commit 817444cCopy full SHA for 817444c
1 file changed
src/Decimal.php
@@ -99,7 +99,7 @@ public function getUnitValue(): mixed
99
return $this->bigDecimal->getUnscaledValue();
100
}
101
102
- public function equals(self|BigDecimal|int|float|string $value): bool
+ public function equals(self|int|float|string $value): bool
103
{
104
return $this->bigDecimal->isEqualTo($this->prepareValue($value));
105
@@ -126,7 +126,7 @@ public function isSmallerOrEqualThan(self|int|float|string $value): bool
126
127
public function notEquals(self|int|float|string $value): bool
128
129
- return !$this->equals($this->prepareValue($value));
+ return !$this->bigDecimal->isEqualTo($this->prepareValue($value));
130
131
132
public function add(self|int|float|string $value): self
0 commit comments