Upgrade PHPStan level to 5
[MAILPOET-1915]
This commit is contained in:
@ -15,7 +15,7 @@ class Security {
|
||||
static function generateRandomString($length = 5) {
|
||||
// non-cryptographically strong random generator
|
||||
return substr(
|
||||
md5(uniqid(mt_rand(), true)),
|
||||
md5(uniqid((string)mt_rand(), true)),
|
||||
0,
|
||||
min(max(5, (int)$length), 32)
|
||||
);
|
||||
|
Reference in New Issue
Block a user