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 fabb3c6 + e149f09 commit fd4a606Copy full SHA for fd4a606
Tests/Authentication/Token/AbstractTokenTest.php
@@ -278,12 +278,22 @@ public function getSalt()
278
279
public function serialize(): string
280
{
281
- return serialize($this->name);
+ return serialize($this->__serialize());
282
}
283
284
public function unserialize($serialized): void
285
286
- $this->name = unserialize($serialized);
+ $this->__unserialize(unserialize($serialized));
287
+ }
288
+
289
+ public function __serialize(): array
290
+ {
291
+ return ['name' => $this->name];
292
293
294
+ public function __unserialize(array $data): void
295
296
+ ['name' => $this->name] = $data;
297
298
299
0 commit comments