8000 minor #21677 [Serializer] Removed duplicate operation in camelcase de… · symfony/symfony@5032477 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5032477

Browse files
committed
minor #21677 [Serializer] Removed duplicate operation in camelcase denormalization (gadelat)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #21677). Discussion ---------- [Serializer] Removed duplicate operation in camelcase denormalization | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 32fcd91 [Serializer] Removed duplicate operation in camelcase denormalization
2 parents eb0ffaa + 32fcd91 commit 5032477

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