Skip to content

Commit f18decf

Browse files
committed
Reproduce issue
1 parent ccb4d16 commit f18decf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestPayloadValueResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ private function mapQueryString(Request $request, string $type, MapQueryString $
9595
return null;
9696
}
9797

98-
return $this->serializer->denormalize($data, $type, 'json', self::CONTEXT_DENORMALIZE + $attribute->context);
98+
return $this->serializer->denormalize($data, $type, null, self::CONTEXT_DENORMALIZE + $attribute->context);
9999
}
100100

101101
private function mapRequestPayload(Request $request, string $type, MapRequestPayload $attribute): ?object
102102
{
103103
if ($data = $request->request->all()) {
104-
return $this->serializer->denormalize($data, $type, 'json', self::CONTEXT_DENORMALIZE + $attribute->context);
104+
return $this->serializer->denormalize($data, $type, null, self::CONTEXT_DENORMALIZE + $attribute->context);
105105
}
106106

107107
if ('' === $data = $request->getContent()) {

0 commit comments

Comments
 (0)