Fixes the following warnings on the edit subscription page with HPOS disabled:
PHP Notice: Object of class WC_DateTime could not be converted to int in /wcdev/app/public/wp-content/plugins/woocommerce-subscriptions-core/includes/wcs-time-functions.php on line 664
How to test this PR
Disable HPOS
Go to WooCommerce > Subscriptions
Edit one of your subscriptions.
Check your php error logs and verify you received the error mentioned above.
On this branch there should be no error.
Product impact
[x] Added changelog entry (or does not apply)
[ ] Will this PR affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Will this PR affect WooCommerce Payments? yes/no/tbc, add issue ref
[ ] Added deprecated functions, hooks or classes to the spreadsheet
Description
Fixes the following warnings on the edit subscription page with HPOS disabled:
How to test this PR
Product impact