Open wavvves opened 1 year ago
This issue has been marked as stale
because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.
Describe the bug
A Warning/ TypeError (depending on PHP version used) is displayed on the front end when Multiple Packages for WooCommerce is activated but not yet configured, while WooCommerce Stripe Gateway is enabled and configured.
To reproduce
Steps to reproduce the behavior:
Expected behavior
No Warning/Error should be displayed.
Additional context
The problem seems to be the output of "woocommerce_cart_shipping_packages" filter, as it is expecting an array explicitly (L828 rules out object implementing Countable).
Note: This could be a good opportunity to revisit the TODO comment and address the duplicate code present there.