With debug mode on a user reports that PHP depreciation notices were logged when using 8.2. They were using Subscriptions 5.5 (I will instruct them to update) but the file in question has not been updated recently.
To Reproduce
Enable WP_DEBUG mode
Update to PHP 8.2
The user noticed this in their error log so unclear how to trigger.
Expected behavior
No notices should be logged.
Actual behavior
Deprecated: Return type of WCS_Array_Property_Post_Meta_Black_Magic::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tmark/Local Sites/ssgc-local/app/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/legacy/class-wcs-array-property-post-meta-black-magic.php on line 65
Deprecated: Return type of WCS_Array_Property_Post_Meta_Black_Magic::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tmark/Local Sites/ssgc-local/app/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/legacy/class-wcs-array-property-post-meta-black-magic.php on line 47
Deprecated: Return type of WCS_Array_Property_Post_Meta_Black_Magic::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tmark/Local Sites/ssgc-local/app/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/legacy/class-wcs-array-property-post-meta-black-magic.php on line 56
Deprecated: Return type of WCS_Array_Property_Post_Meta_Black_Magic::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tmark/Local Sites/ssgc-local/app/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/legacy/class-wcs-array-property-post-meta-black-magic.php on line 72
Product impact
[x] Does this issue affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Does this issue affect WooCommerce Payments? yes/no/tbc, add issue ref
Describe the bug
With debug mode on a user reports that PHP depreciation notices were logged when using 8.2. They were using Subscriptions 5.5 (I will instruct them to update) but the file in question has not been updated recently.
To Reproduce
Expected behavior
No notices should be logged.
Actual behavior
Product impact
Additional context
7083561-zd-a8c