From 28f06938414c1c3ca349bfd0d05095d18c4a69ea Mon Sep 17 00:00:00 2001 From: "A. B. M. Mahmudul Hasan" Date: Wed, 17 Dec 2025 17:22:17 +0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor(functions.php):=20Add?= =?UTF-8?q?=20nullability=20to=20UUID=20function=20arguments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }