Skip to content

Commit 065949b

Browse files
Merge pull request #7 from BeAPI/issue/81885
issue/81885 : fix a visibility issue in the ShoppingFeedCustomFields …
2 parents 63680fa + f930074 commit 065949b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Requires the shoppingfeed plugin
1212

1313
## Changelog
1414

15+
### 1.0.5 (8-07-2025)
16+
17+
* fix: set visibility to public for the __wakeup() method in the ShoppingFeedCustomFields class
18+
1519
### 1.0.4 (28-08-2023)
1620

1721
* fix: missing value for select with single value

src/ShoppingFeedCustomFields.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ private function __clone() {
9696
/**
9797
* Singleton instance can't be serialized.
9898
*/
99-
private function __wakeup() {
99+
public function __wakeup() {
100+
throw new \Exception( 'Cannot unserialize a singleton.' );
100101
}
101102
}

0 commit comments

Comments
 (0)