This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -28,7 +28,7 @@ class UuidV7 extends Uuid implements TimeBasedUidInterface
private static array $seedParts;
private static int $seedIndex = 0;
public function __construct(string $uuid = null)
public function __construct(?string $uuid = null)
{
if (null === $uuid) {
$this->uid = static::generate();
@@ -49,7 +49,7 @@ class UuidV7 extends Uuid implements TimeBasedUidInterface
return \DateTimeImmutable::createFromFormat('U.v', substr_replace($time, '.', -3, 0));
}
public static function generate(\DateTimeInterface $time = null): string
public static function generate(?\DateTimeInterface $time = null): string
{
if (null === $mtime = $time) {
$time = microtime(false);