We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a47bff commit 8dddb88Copy full SHA for 8dddb88
extension.neon
@@ -19,6 +19,7 @@ parameters:
19
- stubs/Utils/ArrayHash.stub
20
- stubs/Utils/Html.stub
21
- stubs/Utils/Paginator.stub
22
+ - stubs/Utils/Random.stub
23
universalObjectCratesClasses:
24
- Nette\Application\UI\ITemplate
25
- Nette\Application\UI\Template
stubs/Utils/Random.stub
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace Nette\Utils;
4
5
+class Random
6
+{
7
+ /**
8
+ * @param positive-int $length
9
+ * @param non-empty-string $charlist
10
+ * @return non-empty-string
11
+ */
12
+ public static function generate(int $length = 10, string $charlist = '0-9a-z'): string
13
+ {
14
+ // nothing
15
+ }
16
+}
0 commit comments