From 41f36c6a48448bce1ab5028508f34fe9afce3409 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Wed, 21 Aug 2024 14:51:53 +0100 Subject: [PATCH] Fix type error for precision value --- Model/Plugin/Currency.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Plugin/Currency.php b/Model/Plugin/Currency.php index be9cb03..cf5095c 100644 --- a/Model/Plugin/Currency.php +++ b/Model/Plugin/Currency.php @@ -20,7 +20,7 @@ public function beforeToCurrency( ...$arguments ) { if ($this->getConfig()->isEnable()) { - $arguments[1]['precision'] = $subject->getPricePrecision(); + $arguments[1]['precision'] = (int) $subject->getPricePrecision(); } return $arguments; }