Skip to content

Commit

Permalink
minor #21677 [Serializer] Removed duplicate operation in camelcase de…
Browse files Browse the repository at this point in the history
…normalization (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
  • Loading branch information
fabpot committed Feb 19, 2017
2 parents eb0ffaa + 32fcd91 commit 5032477
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -76,7 +76,7 @@ public function denormalize($propertyName)
}

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

return $propertyName;
Expand Down

0 comments on commit 5032477

Please sign in to comment.