Skip to content

Conversation

@antograssiot
Copy link
Contributor

@antograssiot antograssiot commented Oct 11, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #32656
License MIT
Doc PR

Using camelCase, with an attribute $aFooBar, naming the getter/setter getAFooBar()/setAFooBar(), returns the property name as AFooBar instead of aFooBar.

Before

Property name 'AFooBar'

After

Property name 'aFooBar' as expected

@antograssiot
Copy link
Contributor Author

Not sure the failing test are related 🤔

@nicolas-grekas nicolas-grekas changed the title [PropertyInfo] Respect property name case when guessing from public m… [PropertyInfo] Respect property name case when guessing from public method name Oct 11, 2019
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Oct 11, 2019
@fabpot
Copy link
Member

fabpot commented Oct 13, 2019

Thank you @antograssiot.

fabpot added a commit that referenced this pull request Oct 13, 2019
…om public method name (antograssiot)

This PR was merged into the 3.4 branch.

Discussion
----------

[PropertyInfo] Respect property name case when guessing from public method name

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #32656
| License       | MIT
| Doc PR        |

Using camelCase, with an attribute `$aFooBar`, naming the getter/setter `getAFooBar()`/`setAFooBar()`,  returns the property name as AFooBar instead of aFooBar.

# Before
Property name `'AFooBar'`

# After
Property name `'aFooBar'` as expected

Commits
-------

843bb76 [PropertyInfo] Respect property name case when guessing from public method name
@fabpot fabpot merged commit 843bb76 into symfony:3.4 Oct 13, 2019
@antograssiot antograssiot deleted the issue-32656 branch October 13, 2019 11:23
This was referenced Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants