8000 Wrong conversion to snake case from upper snake case · Issue #47054 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Wrong conversion to snake case from upper snake case #47054
Closed
@simPod

Description

@simPod

Symfony version(s) affected

6.1.2

Description

Symfony String converts X_Y into xy while I expect it to do X_Y. X_Y is in upper-snake case, the underscore should not be thrown away.

How to reproduce

\Symfony\Component\String\u('X_Y')->snake()

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0