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.
2 parents b87de42 + 8fbf3bb commit a850da5Copy full SHA for a850da5
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