Skip to content

Commit 8b8bf46

Browse files
update
1 parent 513b20e commit 8b8bf46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Str.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,12 +928,12 @@ static public function padString(string $value, int $length, string $padChar = '
928928
/**
929929
* Convert the case of a string based on the specified type.
930930
*
931-
* @param string|null $string The input string
932-
* @param string|null $type The case to convert: 'lower', 'upper', or 'unchanged'
931+
* @param mixed $string The input string
932+
* @param string|int|null $type The case to convert: 'lower', 'upper', or 'unchanged'
933933
*
934934
* @return string The string with converted case
935935
*/
936-
private static function convertCase(string|null $string, string|null $type)
936+
private static function convertCase($string = null, string|null $type)
937937
{
938938
return match (self::lower($type)) {
939939
'upper', 'uppercase', 'upper_case' => self::upper($string),

0 commit comments

Comments
 (0)