Merge branch 'release/v9.34.0' into feature/TTD-2650/string-class-update-with-string-check-helpers

This commit is contained in:
Clemens Schwaighofer
2025-06-04 14:12:01 +09:00
2 changed files with 18 additions and 9 deletions

View File

@@ -32,6 +32,8 @@ class RandomKey
/**
* if launched as class, init random key data first
*
* @param array<string> ...$key_range
*/
public function __construct(array ...$key_range)
{
@@ -41,7 +43,7 @@ class RandomKey
/**
* internal key range validation
*
* @param array<array<string>> ...$key_range
* @param array<string> ...$key_range
* @return string
*/
private static function validateRandomKeyData(array ...$key_range): string
@@ -56,7 +58,7 @@ class RandomKey
/**
* sets the random key range with the default values
*
* @param array<array<string>> $key_range a list of key ranges as array
* @param array<string> $key_range a list of key ranges as array
* @return void has no return
* @throws \LengthException If the string length is only 1 abort
*/
@@ -152,11 +154,11 @@ class RandomKey
* if override key length is set, it will check on valid key and use this
* this will not set the class key length variable
*
* @param int $key_length [default=-1] key length override,
* if not set use default [LEGACY]
* @param array<array<string>> $key_range a list of key ranges as array,
* if not set use previous set data
* @return string random key
* @param int $key_length [default=-1] key length override,
* if not set use default [LEGACY]
* @param array<string> $key_range a list of key ranges as array,
* if not set use previous set data
* @return string random key
*/
public static function randomKeyGen(
int $key_length = self::KEY_LENGTH_DEFAULT,