From 6ad7be3d5837b91effa1710b7f5f39a89de05fa1 Mon Sep 17 00:00:00 2001 From: Bec Scott Date: Wed, 30 Sep 2020 13:51:25 +1000 Subject: [PATCH] Fix wakeup visibility for PHP 8 compatibility (https://github.com/woocommerce/woocommerce-admin/pull/5211) Co-authored-by: Rebecca Scott --- plugins/woocommerce-admin/src/FeaturePlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/src/FeaturePlugin.php b/plugins/woocommerce-admin/src/FeaturePlugin.php index 2e52a7bb674..6a66e9bc783 100644 --- a/plugins/woocommerce-admin/src/FeaturePlugin.php +++ b/plugins/woocommerce-admin/src/FeaturePlugin.php @@ -313,5 +313,7 @@ class FeaturePlugin { /** * Prevent unserializing. */ - private function __wakeup() {} + public function __wakeup() { + die(); + } }