8000 [Serializer] Removed duplicate operation in camelcase denormalization · symfony/symfony@32fcd91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32fcd91

Browse files
ostroluckyfabpot
authored andcommitted
[Serializer] Removed duplicate operation in camelcase denormalization
1 parent eb0ffaa commit 32fcd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/NameConverter/CamelCaseToSnakeCaseNameConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function denormalize($propertyName)
7676
}
7777

7878
if (null === $this->attributes || in_array($camelCasedName, $this->attributes)) {
79-
return $this->lowerCamelCase ? lcfirst($camelCasedName) : $camelCasedName;
79+
return $camelCasedName;
8080
}
8181

8282
return $propertyName;

0 commit comments

Comments
 (0)
0