diff --git a/README.md b/README.md index d57255f..3c35bc6 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ Requires the shoppingfeed plugin ## Changelog +### 1.0.5 (8-07-2025) + +* fix: set visibility to public for the __wakeup() method in the ShoppingFeedCustomFields class + ### 1.0.4 (28-08-2023) * fix: missing value for select with single value diff --git a/src/ShoppingFeedCustomFields.php b/src/ShoppingFeedCustomFields.php index 524ceff..45292ff 100644 --- a/src/ShoppingFeedCustomFields.php +++ b/src/ShoppingFeedCustomFields.php @@ -96,6 +96,7 @@ private function __clone() { /** * Singleton instance can't be serialized. */ - private function __wakeup() { + public function __wakeup() { + throw new \Exception( 'Cannot unserialize a singleton.' ); } }