8000
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.
1 parent b87de42 commit 8fbf3bbCopy full SHA for 8fbf3bb
src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php
@@ -322,12 +322,22 @@ public function getSalt()
322
323
public function serialize(): string
324
{
325
- return serialize($this->name);
+ return serialize($this->__serialize());
326
}
327
328
public function unserialize($serialized): void
329
330
- $this->name = unserialize($serialized);
+ $this->__unserialize(unserialize($serialized));
331
+ }
332
+
333
+ public function __serialize(): array
334
+ {
335
+ return ['name' => $this->name];
336
337
338
+ public function __unserialize(array $data): void
339
340
+ ['name' => $this->name] = $data;
341
342
343
0 commit comments