Skip to content

Commit

Permalink
Merge pull request #2760 from twin-elements/fix/action-price-type-con…
Browse files Browse the repository at this point in the history
…version

Added action price casting to int
  • Loading branch information
dpfaffenbauer authored Dec 2, 2024
2 parents f359324 + 5998f98 commit 9039a4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9039a4b

Please sign in to comment.