Title: PHP8.1 compatibility
Last modified: December 19, 2022

---

# PHP8.1 compatibility

 *  [Kees Lamper](https://wordpress.org/support/users/keeslamper/)
 * (@keeslamper)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php8-1-compatibility/)
 * Hi,
 * I’m using Kinsta as hosting, and they’re going to upgrade all sites to 8.1 soon.
   I am testing several sites on 8.1 and I’m getting some deprecated warnings with
   this plugin:
 * **Deprecated**: Return type of YITH_WCWL_Wishlist_Item::offsetExists($offset)
   should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool,
   or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in **/www/byjenn_868/public/wp-content/plugins/yith-woocommerce-wishlist/
   includes/class-yith-wcwl-wishlist-item.php** on line **710**
 * **Deprecated**: Return type of YITH_WCWL_Wishlist_Item::offsetGet($offset) should
   either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the#[\
   ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
   in **/www/byjenn_868/public/wp-content/plugins/yith-woocommerce-wishlist/includes/
   class-yith-wcwl-wishlist-item.php** on line **727**
 * **Deprecated**: Return type of YITH_WCWL_Wishlist_Item::offsetSet($offset, $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 **/www/byjenn_868/public/wp-content/plugins/yith-woocommerce-
   wishlist/includes/class-yith-wcwl-wishlist-item.php** on line **676**
 * **Deprecated**: Return type of YITH_WCWL_Wishlist_Item::offsetUnset($offset) 
   should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void,
   or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
   the notice in **/www/byjenn_868/public/wp-content/plugins/yith-woocommerce-wishlist/
   includes/class-yith-wcwl-wishlist-item.php** on line **692**
   Is there any plans
   to update the plugin to 8.1 standards / can I do something myself?Kind regards,
 * Kees

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Kees Lamper](https://wordpress.org/support/users/keeslamper/)
 * (@keeslamper)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php8-1-compatibility/#post-16302460)
 * Forgot to tell: I have version 3.16.0
 *  [delythchandler](https://wordpress.org/support/users/delythchandler/)
 * (@delythchandler)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php8-1-compatibility/#post-16309199)
 * I’m having the same error with PHP 8.1 and plugin 3.16.0
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php8-1-compatibility/#post-16309935)
 * Hello Kees,
   we hope you’re doing well!
 * Unfortunately, our plugins are yet not prepared to work in PHP 8.1.
   This is because
   of the several numbers of errors that it through in WordPress and WooCommerce.
 * At the moment, we are waiting for a movement of any of those platforms to begin
   our process of compatibility.
   For now, we recommend you to stay in PHP 8.0 which
   should work without any problem.
 * Please, let us know.
 * Have a nice day.
 *  [andreacomplus](https://wordpress.org/support/users/andreacomplus/)
 * (@andreacomplus)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php8-1-compatibility/#post-16358501)
 * Adding temporarily a **[\ReturnTypeWillChange]** annotation would patch the issue
   and be backwards compatible, please consider this option. For compliance reasons
   we had to move a host to PHP 8.1 and we cannot rollback for a single plugin.
 * FYI WordPress and Woocommerce, in our use cases, work perfectly well in PHP 8.1

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP8.1 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [andreacomplus](https://wordpress.org/support/users/andreacomplus/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php8-1-compatibility/#post-16358501)
 * Status: not resolved