You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I got the issue, in AbstractUnicodeString::snake the first thing done is
$str = $this->camel()->title();
Inside AbstractUnicodeString::camel there is a replace of all the non-letter or non-digit chars with a space (inner preg_replace) and then replace the space with empty string.
So this is why the underscore is gone.
I am trying to understand if the camel call is correct in this case.
After some other investigations, it looks like it's an extreme edge case.
Currently, it's happening only with strings ending with an underscore followed by all (one or more) capital letters.
Basically:
Symfony version(s) affected
6.1.2
Description
Symfony String converts
X_Y
intoxy
while I expect it to doX_Y
.X_Y
is in upper-snake case, the underscore should not be thrown away.How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: