mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Fix psalm
This commit is contained in:
parent
b9f56bba33
commit
a17a556617
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ class PayUponInvoice {
|
|||
|
||||
$cart = WC()->cart ?? null;
|
||||
if ( $cart ) {
|
||||
$cart_total = (int) WC()->cart->get_totals()['total'] ?? 0;
|
||||
$cart_total = (int) WC()->cart->get_totals()['total'];
|
||||
if ( $cart_total < 5 || $cart_total > 2500 ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue