Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand Down