mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +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;
|
$cart = WC()->cart ?? null;
|
||||||
if ( $cart ) {
|
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 ) {
|
if ( $cart_total < 5 || $cart_total > 2500 ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue