8000 Fix typo · symfony/symfony-docs@19fd8f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19fd8f7

Browse files
dlonderojaviereguiluz
authored andcommitted
Fix typo
Looks like `unserialize` (which is not a method of the Serializer class) was used instead of `deserialize`.
1 parent da8025c commit 19fd8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ This example shows how to serialize and deserialize those objects::
12441244
$serialized = $serializer->serialize(new GitHubCodeRepository());
12451245
// {"type": "github"}
12461246

1247-
$repository = $serializer->unserialize($serialized, CodeRepository::class, 'json');
1247+
$repository = $serializer->deserialize($serialized, CodeRepository::class, 'json');
12481248
// instanceof GitHubCodeRepository
12491249

12501250
If the class metadata factory is enabled as explained in the

0 commit comments

Comments
 (0)
0