{"issue":{"title":"[Serializer] GetSetMethodNormalizer uses `lcfirst` instead of `strtolower`","user":{"login":"ericclemmons","id":15182,"url":"https://api.github.com/users/ericclemmons","avatar_url":"https://secure.gravatar.com/avatar/b6ffb4f3fe821e31f69923630dfdebc5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b6ffb4f3fe821e31f69923630dfdebc5"},"created_at":"2011-12-27T21:21:47Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-29T16:20:15Z","id":2666368,"closed_at":null,"html_url":"https://github.com/symfony/symfony/issues/2977","pull_request":{"patch_url":"https://github.com/symfony/symfony/pull/2977.patch","html_url":"https://github.com/symfony/symfony/pull/2977","diff_url":"https://github.com/symfony/symfony/pull/2977.diff"},"body":"Bug fix: yes\r\nFeature addition: no\r\nBackwards compatibility break: yes\r\nSymfony2 tests pass: yes\r\nFixes the following tickets: #2863\r\n\r\nAs a courtesy to @lxg, this PR calculates method names using `lcfirst` instead of `strtolower`: `fooBar` was converted to `getFoobar`, but is now `getFooBar`.\r\n\r\nHowever, according to the [PHP documentation](http://www.php.net/manual/en/functions.user-defined.php):\r\n\r\n> **Note**: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.\r\n\r\nIn my opinion, this PR is simply cleanup, letting the normalized structure accurately reflect the underlying methods/properties.  If anyone is using the normalizer now, their keys may change, causing a BC break.\r\n\r\nIf this PR is considered for merging, I recommend making it in `master` rather than `2.0`, because of potential BC issues.","number":2977,"url":"https://api.github.com/repos/symfony/symfony/issues/2977","comments":3,"assignee":null},"comment":{"user":{"login":"ericclemmons","id":15182,"url":"https://api.github.com/users/ericclemmons","avatar_url":"https://secure.gravatar.com/avatar/b6ffb4f3fe821e31f69923630dfdebc5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b6ffb4f3fe821e31f69923630dfdebc5"},"created_at":"2011-12-29T16:20:15Z","updated_at":"2011-12-29T16:20:15Z","id":3302114,"body":"@stof How would prefer to do this?  (I personally use [Zend\\Filter\\Word\\CamelCaseToSeparator](https://github.com/zendframework/zf2/blob/master/library/Zend/Filter/Word/CamelCaseToSeparator.php))\r\n\r\nThere are several parts of Symfony that could benefit from string normalization classes, but I'm not sure the best place for it to live.\r\n\r\n`Symfony\\Component\\Serializer\\Util\\StringUtil` with `toCamelCase`, `toSeparator('-')` (modeled after `FormUtil`)?","url":"https://api.github.com/repos/symfony/symfony/issues/comments/3302114"},"action":"created"}