Skip to content

Commit 015c3f9

Browse files
Str::convertCase() method update
1 parent f90ad10 commit 015c3f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Str.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,11 +896,11 @@ static public function padString(string $value, int $length, string $padChar = '
896896
* Convert the case of a string based on the specified type.
897897
*
898898
* @param string|null $string The input string
899-
* @param string $type The case to convert: 'lower', 'upper', or 'unchanged'
899+
* @param string|null $type The case to convert: 'lower', 'upper', or 'unchanged'
900900
*
901901
* @return string The string with converted case
902902
*/
903-
private static function convertCase(string|null $string, string $type)
903+
private static function convertCase(string|null $string, string|null $type)
904904
{
905905
return match (self::lower($type)) {
906906
'upper', 'uppercase', 'upper_case' => self::upper($string),

0 commit comments

Comments
 (0)