diff --git a/.gitignore b/.gitignore index 0f7ea6ef..9f377cbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.idea/ /tmp.repo.magento.com.json /tools/tmp.repo.magento.com.json diff --git a/optional/mollie/magento2/cast_null_total_value_to_zero.patch b/optional/mollie/magento2/cast_null_total_value_to_zero.patch new file mode 100644 index 00000000..62086f32 --- /dev/null +++ b/optional/mollie/magento2/cast_null_total_value_to_zero.patch @@ -0,0 +1,13 @@ +diff --git a/Controller/ApplePay/ShippingMethods.php b/Controller/ApplePay/ShippingMethods.php +index 50be298..0387525 100644 +--- a/Controller/ApplePay/ShippingMethods.php ++++ b/Controller/ApplePay/ShippingMethods.php +@@ -119,7 +119,7 @@ class ShippingMethods extends Action + return [ + 'type' => 'final', + 'label' => $total->getData('title'), +- 'amount' => number_format($total->getData('value'), 2, '.', ''), ++ 'amount' => number_format((float)$total->getData('value'), 2, '.', ''), + ]; + }, array_values($cart->getTotals())) + ]);