Skip to content

Commit f90ad10

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

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
@@ -895,12 +895,12 @@ static public function padString(string $value, int $length, string $padChar = '
895895
/**
896896
* Convert the case of a string based on the specified type.
897897
*
898-
* @param string|int $string The input string
898+
* @param string|null $string The input string
899899
* @param string $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|int $string, string $type)
903+
private static function convertCase(string|null $string, string $type)
904904
{
905905
return match (self::lower($type)) {
906906
'upper', 'uppercase', 'upper_case' => self::upper($string),

0 commit comments

Comments
 (0)