Would anyone know how we can rewrite the following function to be compatible and work with PHP 8?
function wpsc_have_shipping_quote() {
$has_quote = false;
global $wpsc_cart;
if ( $wpsc_cart->shipping_quote_count > 0 || count( $wpsc_cart->shipping_quotes ) > 0 ) {
$has_quote = true;
}
return $has_quote;
}