Skip to content

Wrong conversion to snake case from upper snake case #47054

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy