diff --git a/src/functions.php b/src/functions.php index 94a768b..fd7770e 100644 --- a/src/functions.php +++ b/src/functions.php @@ -17,7 +17,7 @@ * @return string The generated UUID. * @throws Exception */ - function uuid1(string $node = null): string + function uuid1(?string $node = null): string { return UUID::v1($node); } @@ -74,7 +74,7 @@ function uuid5(string $namespace, string $string): string * @return string * @throws Exception */ - function uuid6(string $node = null): string + function uuid6(?string $node = null): string { return UUID::v6($node); } @@ -89,7 +89,7 @@ function uuid6(string $node = null): string * @return string * @throws Exception */ - function uuid7(?DateTimeInterface $dateTime = null, string $node = null): string + function uuid7(?DateTimeInterface $dateTime = null, ?string $node = null): string { return UUID::v7($dateTime, $node); } @@ -103,7 +103,7 @@ function uuid7(?DateTimeInterface $dateTime = null, string $node = null): string * @return string * @throws Exception */ - function uuid8(string $node = null): string + function uuid8(?string $node = null): string { return UUID::v8($node); }