fix psalm

This commit is contained in:
dinamiko 2022-10-10 15:17:05 +02:00
parent eec6ba8167
commit 3bbaeb9e10
2 changed files with 2 additions and 2 deletions

View file

@ -247,7 +247,7 @@ class PayUponInvoice {
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
$paypal_fee = $breakdown->paypal_fee();
if ( $paypal_fee ) {
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
$wc_order->update_meta_data( 'PayPal Transaction Fee', (string) $paypal_fee->value() );
}
$wc_order->save_meta_data();

View file

@ -89,7 +89,7 @@ class WCGatewayModule implements ModuleInterface {
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
$paypal_fee = $breakdown->paypal_fee();
if ( $paypal_fee ) {
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
$wc_order->update_meta_data( 'PayPal Transaction Fee', (string) $paypal_fee->value() );
}
$wc_order->save_meta_data();