Skip to content

Commit ac66cc0

Browse files
committed
修正
1 parent 402cb3e commit ac66cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function startsWith(string $haystack, $needles): bool
8080
* @param string $addChars
8181
* @return string
8282
*/
83-
public static function random(int $length = 6, int $type = null, string $addChars = ''): string
83+
public static function random(int $length = 6, ?int $type = null, string $addChars = ''): string
8484
{
8585
$str = '';
8686
switch ($type) {

0 commit comments

Comments
 (0)