Skip to content

Commit c7243e0

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Serializer] Add missing json parameter
2 parents a19821c + bb08518 commit c7243e0

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
@@ -2306,7 +2306,7 @@ To avoid deserializing the whole response, you can use the
23062306
and "unwrap" the input data::
23072307

23082308
$jsonData = '{"result":"success","data":{"person":{"name": "Jane Doe","age":57}}}';
2309-
$data = $serialiser->deserialize($jsonData, Object::class, [
2309+
$data = $serialiser->deserialize($jsonData, Object::class, 'json', [
23102310
UnwrappingDenormalizer::UNWRAP_PATH => '[data][person]',
23112311
]);
23122312
// $data is Person(name: 'Jane Doe', age: 57)

0 commit comments

Comments
 (0)