mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-04 03:38:42 +00:00
add uuid
This commit is contained in:
parent
a27b433ef4
commit
3d26dc8fdd
|
|
@ -34,6 +34,7 @@ final class UUID
|
||||||
*/
|
*/
|
||||||
public static function default(int $length = 16) : string
|
public static function default(int $length = 16) : string
|
||||||
{
|
{
|
||||||
|
/** @phpstan-ignore-next-line */
|
||||||
if ($length < 8) {
|
if ($length < 8) {
|
||||||
throw new \InvalidArgumentException();
|
throw new \InvalidArgumentException();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user