Skip to content

[String] Normalize underscores in snake() #57594

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
Jun 29, 2024
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jun 29, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #57497 (comment)
License MIT

@carsonbot carsonbot added this to the 5.4 milestone Jun 29, 2024
@carsonbot carsonbot changed the title [String] normalize underscores in snake() [String]  normalize underscores in snake() Jun 29, 2024
@@ -1079,6 +1079,8 @@ public static function provideSnake()
['symfony', 'SYMFONY'],
['symfony_is_great', 'SYMFONY IS GREAT'],
['symfony_is_great', 'SYMFONY_IS_GREAT'],
['symfony_is_great', 'symfony is great'],
['symfony_is_great', 'SYMFONY IS GREAT'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add a test case like
['symfony_is_great', 'SYMFONY _ IS _ GREAT'],

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, and this also revealed a bug in my patch

@nicolas-grekas nicolas-grekas changed the title [String]  normalize underscores in snake() [String] Normalize underscores in snake() Jun 29, 2024
@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

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.

3 participants