Skip to content

Commit f930074

Browse files
issue/81885 : throw an exception if the __wakeup() method is called
1 parent 3caaa0a commit f930074

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ShoppingFeedCustomFields.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ private function __clone() {
9797
* Singleton instance can't be serialized.
9898
*/
9999
public function __wakeup() {
100+
throw new \Exception( 'Cannot unserialize a singleton.' );
100101
}
101102
}

0 commit comments

Comments
 (0)