Juan,
I really don’t understand what is not clear for you guy.
There’s a php deprecated message because utilize object not declared at the start of your class.
This deprecated error start during migrating from PHP 8.1.x to PHP 8.2.x
https://www.php.net/manual/it/migration82.deprecated.php
The solutions are very simple:
Declare the vars at the start of the class, as suggested from Shashank Shekhar
-
This reply was modified 2 years, 2 months ago by davcaffa.
my local server have PHP 8.1 and have the warning deprecated. Also on my production server, with php 8.2 I have the same error.
for correct this kind of warning Need to change the object created in the class with normal php variable in wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl.php:69 can remplace without problema in the plugin
$this->wcwl_frontend with $wcwl_frontend on row 69 and the same for the other errors
-
This reply was modified 2 years, 2 months ago by davcaffa.
-
This reply was modified 2 years, 2 months ago by davcaffa.