This commit is contained in:
Yuri Kuznetsov
2023-03-20 13:32:51 +02:00
parent 9a9d924b19
commit b4d02130fb
+1 -1
View File
@@ -117,7 +117,7 @@ class Currency
public function subtract(self $value): self
{
if ($this->getCode() !== $value->getCode()) {
throw new RuntimeException("Can't substract a currency value with a different code.");
throw new RuntimeException("Can't subtract a currency value with a different code.");
}
$amount = CalculatorUtil::subtract(