-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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 | MIT In 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, #57616 Commits ------- a6d0f3b test: kebab-case to snake_case
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? |
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).