Skip to content

Commit 3da9579

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [Serializer] Add missing json parameter
2 parents cdc2170 + 822a366 commit 3da9579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ To avoid deserializing the whole response, you can use the
24912491
and "unwrap" the input data::
24922492

24932493
$jsonData = '{"result":"success","data":{"person":{"name": "Jane Doe","age":57}}}';
2494-
$data = $serialiser->deserialize($jsonData, Object::class, [
2494+
$data = $serialiser->deserialize($jsonData, Object::class, 'json', [
24952495
UnwrappingDenormalizer::UNWRAP_PATH => '[data][person]',
24962496
]);
24972497
// $data is Person(name: 'Jane Doe', age: 57)

0 commit comments

Comments
 (0)