[Serializer] Removed duplicate operation in camelcase denormalization

This commit is contained in:
Gabriel Ostrolucký 2017-02-19 23:11:52 +01:00 committed by Fabien Potencier
parent eb0ffaaee7
commit 32fcd91397

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;