d931405156
Since expect return an integer value, we can't return an empty string. This can generate some kinds of errors like: '' >= 1 returns false '' >= -1 returns true This can be a problem comparing stock quantity like we do in WC_Product::has_enough_stock() But using null we have: null >= 1 returns false null >= -1 returns false cc @mikejolley ref #9598 |
||
---|---|---|
.. | ||
abstract-wc-integration.php | ||
abstract-wc-order.php | ||
abstract-wc-payment-gateway.php | ||
abstract-wc-product.php | ||
abstract-wc-session.php | ||
abstract-wc-settings-api.php | ||
abstract-wc-shipping-method.php | ||
abstract-wc-widget.php |