Fix psalm

This commit is contained in:
dinamiko 2022-05-04 11:22:54 +02:00
parent b9f56bba33
commit a17a556617

View file

@ -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;
} }