Skip to content

Commit

Permalink
Merge pull request #1 from mageplaza/develop
Browse files Browse the repository at this point in the history
fix: compatible PHP 8.2
  • Loading branch information
chuccv authored Dec 12, 2024
2 parents 8f1b315 + 875940b commit 23b02e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/Model/Resolver/OrderTotal.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function afterResolve(SalesGraphQlOrderTotal $subject, $result)
$result['mp_reward_points'] = [
'earn' => $order->getData('mp_reward_earn'),
'spent' => $order->getData('mp_reward_spent'),
'discount' => abs($order->getData('mp_reward_discount'))
'discount' => abs((float)$order->getData('mp_reward_discount'))
];

return $result;
Expand Down

0 comments on commit 23b02e1

Please sign in to comment.