Skip to content

[PropertyInfo] Added documentation about camelCase assumption for getter/setter methods #18942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jbtronics
Copy link
Contributor

@jbtronics jbtronics commented Sep 29, 2023

Fix #18940

With this PR, the documentation makes it more clear, that getters/setters for snake and camel case style properties can have a PSR-1 conform camelCase getter/setter to be considered accessible.

@alexandre-daubois
Copy link
Member

Maybe a versionadded directive should be added to reflect to new behavior in 6.4 🙂

@jbtronics
Copy link
Contributor Author

Added an versionAdded block, to explicitly mention the behavior change. @alexandre-daubois

@javiereguiluz javiereguiluz merged commit 669b470 into symfony:6.4 Oct 4, 2023
@javiereguiluz
Copy link
Member

Jan, thanks a lot for making docs more precise and congrats on your first Symfony Docs contribution 🎉

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.

[PropertyInfo] Make isWriteable() more consistent with isReadable() whe…
5 participants