Skip to content

Commit

Permalink
chore: PHPStan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Aug 2, 2024
1 parent 0326c02 commit bf27dd8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Utils/StringHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function variablize(?string $string): string
}

/**
* Transform to camelcase.
* Transform to lower camelCase.
*
* @param string|null $string
*
Expand All @@ -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 bf27dd8

Please sign in to comment.