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:
commit
50324777bf
@ -76,7 +76,7 @@ class CamelCaseToSnakeCaseNameConverter implements NameConverterInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (null === $this->attributes || in_array($camelCasedName, $this->attributes)) {
|
if (null === $this->attributes || in_array($camelCasedName, $this->attributes)) {
|
||||||
return $this->lowerCamelCase ? lcfirst($camelCasedName) : $camelCasedName;
|
return $camelCasedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $propertyName;
|
return $propertyName;
|
||||||
|
Reference in New Issue
Block a user