From 057f44701b650150ea4f01d23f42036d80b77383 Mon Sep 17 00:00:00 2001 From: Milan Sulc Date: Fri, 13 Feb 2026 09:59:51 +0000 Subject: [PATCH] Entity: replace deprecated Brick\Math UNNECESSARY constant --- src/Entity/Payment.php | 2 +- src/Entity/RecurringPayment.php | 2 +- src/Entity/Refund.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/Payment.php b/src/Entity/Payment.php index 7f0bfd6..76dac2c 100644 --- a/src/Entity/Payment.php +++ b/src/Entity/Payment.php @@ -43,7 +43,7 @@ public static function of( ): self { $p = new static(); - $p->price = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->price = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->label = $label; $p->refId = $refId; diff --git a/src/Entity/RecurringPayment.php b/src/Entity/RecurringPayment.php index cf4f0fc..7e59385 100644 --- a/src/Entity/RecurringPayment.php +++ b/src/Entity/RecurringPayment.php @@ -28,7 +28,7 @@ public static function of( { $p = new static(); $p->initRecurringId = $initRecurringId; - $p->price = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->price = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->label = $label; $p->refId = $refId; diff --git a/src/Entity/Refund.php b/src/Entity/Refund.php index 7245812..632127d 100644 --- a/src/Entity/Refund.php +++ b/src/Entity/Refund.php @@ -29,7 +29,7 @@ public static function of( ): self { $p = new static(); - $p->amount = $money->multipliedBy(100, RoundingMode::UNNECESSARY)->getAmount()->toInt(); + $p->amount = $money->multipliedBy(100, RoundingMode::Unnecessary)->getAmount()->toInt(); $p->curr = $money->getCurrency()->getCurrencyCode(); $p->transId = $transId; $p->refId = $refId;