Skip to content

Commit 272bc28

Browse files
committed
[Serializer] Fix constructor deserialization path
1 parent 48be4b3 commit 272bc28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php

+2
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
489489
*/
490490
protected function createChildContext(array $parentContext, string $attribute, ?string $format): array
491491
{
492+
$parentContext['deserialization_path'] = ($parentContext['deserialization_path'] ?? false) ? $parentContext['deserialization_path'].'.'.$attribute : $attribute;
493+
492494
if (isset($parentContext[self::ATTRIBUTES][$attribute])) {
493495
$parentContext[self::ATTRIBUTES] = $parentContext[self::ATTRIBUTES][$attribute];
494496
} else {

0 commit comments

Comments
 (0)