Change __wakeup() to a public method to avoid PHP8 warning.
This commit is contained in:
parent
29b8b0d60d
commit
9440ec3570
|
@ -45,5 +45,8 @@ trait SingletonTrait {
|
|||
/**
|
||||
* Prevent unserializing.
|
||||
*/
|
||||
private function __wakeup() {}
|
||||
final public function __wakeup() {
|
||||
wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '4.6' );
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue