From 5998f9824989d6e0646558b155a4fb43dd5e0326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82adys=C5=82aw=20Dudko?= Date: Mon, 2 Dec 2024 09:37:35 +0100 Subject: [PATCH] Added action price casting to int --- .../Component/Product/Rule/Action/PriceActionProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreShop/Component/Product/Rule/Action/PriceActionProcessor.php b/src/CoreShop/Component/Product/Rule/Action/PriceActionProcessor.php index 915277f6ca..b30e681417 100644 --- a/src/CoreShop/Component/Product/Rule/Action/PriceActionProcessor.php +++ b/src/CoreShop/Component/Product/Rule/Action/PriceActionProcessor.php @@ -55,7 +55,7 @@ public function getPrice($subject, array $context, array $configuration): int * @var CurrencyInterface $contextCurrency */ $contextCurrency = $context['base_currency']; - $price = $configuration['price']; + $price = (int) $configuration['price']; /** * @var CurrencyInterface $currency