8000 minor #10135 [Serializer] Fix typo (dlondero) · symfony/symfony-docs@b755e91 · GitHub
[go: up one dir, main page]

Skip to content

Commit b755e91

Browse files
committed
minor #10135 [Serializer] Fix typo (dlondero)
This PR was submitted for the master branch but it was merged into the 4.1 branch instead (closes #10135). Discussion ---------- [Serializer] Fix typo Looks like `unserialize` (which is not a method of the Serializer class) was used instead of `deserialize`. Commits ------- 19fd8f7 Fix typo
2 parents da8025c + 19fd8f7 commit b755e91

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