Skip to content

Commit

Permalink
fix: Fixed StringHandler camelCase method with lc_first
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Aug 2, 2024
1 parent 08c6d6c commit 47c7798
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Models/src/Utils/StringHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,13 @@ public static function camelCase(?string $string): string
return '';
}

return (new UnicodeString($string))
return mb_lcfirst((new UnicodeString($string))
->ascii()
->camel()
->trim('-')
->trim('_')
->trim()
->toString()
;
->camel()
->toString());
}


Expand Down

0 comments on commit 47c7798

Please sign in to comment.