We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402cb3e commit ac66cc0Copy full SHA for ac66cc0
src/helper/Str.php
@@ -80,7 +80,7 @@ public static function startsWith(string $haystack, $needles): bool
80
* @param string $addChars
81
* @return string
82
*/
83
- public static function random(int $length = 6, int $type = null, string $addChars = ''): string
+ public static function random(int $length = 6, ?int $type = null, string $addChars = ''): string
84
{
85
$str = '';
86
switch ($type) {
0 commit comments