• 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

    (@keeslamper)

    Forgot to tell: I have version 3.16.0

    I’m having the same error with PHP 8.1 and plugin 3.16.0

    Plugin Support Juan Coronel

    (@juaancmendez)

    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.

    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.