Skip to content

Commit 101f79e

Browse files
committed
Add modern __serialize and __unserialize magic methods
1 parent addff77 commit 101f79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/troubleshooting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ Troubleshooting
131131
**Solution to: Your authenticated token was flagged as invalid**
132132

133133
Most likely your user entity implements the a serializable interface and not all of the fields relevant to the
134-
authentication process are taken by serialize/unserialize. Check which fields are used in methods ``serialize()`` and
135-
``deserialize()``.
134+
authentication process are taken by serialize/unserialize. Check which fields are used in methods ``serialize()`` /
135+
``__serialize()`` and ``deserialize()`` / ``__unserialize()``.
136136

137137
It must be at least the fields that are used in the methods from ``Symfony\Component\Security\Core\User\UserInterface``.
138138

0 commit comments

Comments
 (0)