Skip to content

Commit

Permalink
Added action price casting to int
Browse files Browse the repository at this point in the history
  • Loading branch information
twin-elements committed Dec 2, 2024
1 parent f359324 commit 5998f98
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 5998f98

Please sign in to comment.