Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[String] Revert "Fixed u()->snake(), b()->snake() and s()->snake() methods"#57616
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fabpot commentedJul 1, 2024
Thank you@nicolas-grekas. |
This PR was merged into the 5.4 branch.Discussion----------[String] test: kebab-case to snake_case| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | yes?| New feature? | no| Deprecations? | no| Issues | -| License | MITIn Symfony 7.1.1, `kebab-case` strings casted to `snake_case` properly. The changes made in 7.1.2 broke this functionality and kept it `kebab-case`.It would be nice to have a `kebab-case` test added to the list to clearly define the expected behavior.Relates to:#57497,#57612,#57616Commits-------a6d0f3b test: kebab-case to snake_case
kevinpapst commentedJul 19, 2024
This is still not correct or at least contains a BC break@nicolas-grekas I did not check whether this was introduced by the original change or your fix. The string New bug report? |
nicolas-grekas commentedJul 19, 2024
Better: a PR! 🙏 |
This PR reverts#57497 for BC reasons, but keeps the test cases we added in the process. Those test cases allowed to spot a real issue where the ascii and unicode implementations didn't agree on the resulting camel case for
SYMFONY IS GREAT. Both implementations now result inSYMFONYISGREAT(likely introduced in#47423).