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
-------

32fcd91397 [Serializer] Removed duplicate operation in camelcase denormalization
This commit is contained in:
Fabien Potencier 2017-02-19 15:30:59 -08:00
commit 50324777bf

View File

@ -76,7 +76,7 @@ class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
}
if (null === $this->attributes || in_array($camelCasedName, $this->attributes)) {
return $this->lowerCamelCase ? lcfirst($camelCasedName) : $camelCasedName;
return $camelCasedName;
}
return $propertyName;