Skip to content

Conversation

lhsazevedo
Copy link
Contributor

Simplifies getDisplayableAttribute by passing the space delimiter directly to Str::snake instead of applying a separate str_replace.

Simplifies getDisplayableAttribute by passing the space delimiter
directly to Str::snake instead of applying a separate str_replace.
@lhsazevedo lhsazevedo marked this pull request as draft August 18, 2025 19:28
@lhsazevedo
Copy link
Contributor Author

Converted to draft while I investigate failing tests.

@DanielCHood
Copy link

@lhsazevedo, the failing tests are because the change isn't backwards compatible.

Str::snake('my_email', ' ') !== str_replace('_', ' ', Str::snake('my_email')

@lhsazevedo
Copy link
Contributor Author

Oh that makes sense, thank you

@lhsazevedo lhsazevedo closed this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants