Skip to content

Commit 1ebca9a

Browse files
committed
[Serializer] Convert names using denormalize during denormalization
1 parent a839bec commit 1ebca9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ protected function instantiateObject(array &$data, string $class, array &$contex
351351
$params = [];
352352
foreach ($constructorParameters as $constructorParameter) {
353353
$paramName = $constructorParameter->name;
354-
$key = $this->nameConverter ? $this->nameConverter->normalize($paramName, $class, $format, $context) : $paramName;
354+
$key = $this->nameConverter ? $this->nameConverter->denormalize($paramName, $class, $format, $context) : $paramName;
355355

356356
$allowed = false === $allowedAttributes || \in_array($paramName, $allowedAttributes);
357357
$ignored = !$this->isAllowedAttribute($class, $paramName, $format, $context);

0 commit comments

Comments
 (0)