We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 197eedd + d993616 commit 1f5a333Copy full SHA for 1f5a333
src/Search.php
@@ -171,9 +171,25 @@ class Search
171
private $endpoints = [];
172
173
/**
174
- * Initializes serializer.
+ * Constructor to initialize static properties
175
*/
176
public function __construct()
177
+ {
178
+ $this->initializeSerializer();
179
+ }
180
+
181
+ /**
182
+ * Wakeup method to initialize static properties
183
+ */
184
+ public function __wakeup()
185
186
187
188
189
190
+ * Initializes the serializer
191
192
+ private function initializeSerializer()
193
{
194
if (static::$serializer === null) {
195
static::$serializer = new OrderedSerializer(
0 commit comments