Skip to content

Commit f1d7384

Browse files
ostroluckyfabpot
authored andcommitted
[Serializer] Removed duplicate operation in camelcase denormalization
1 parent 6ad1ce8 commit f1d7384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)