🔧
This commit is contained in:
6
vendor/symfony/uid/UuidV1.php
vendored
6
vendor/symfony/uid/UuidV1.php
vendored
@@ -22,10 +22,10 @@ class UuidV1 extends Uuid implements TimeBasedUidInterface
|
||||
|
||||
private static string $clockSeq;
|
||||
|
||||
public function __construct(string $uuid = null)
|
||||
public function __construct(?string $uuid = null)
|
||||
{
|
||||
if (null === $uuid) {
|
||||
$this->uid = uuid_create(static::TYPE);
|
||||
$this->uid = strtolower(uuid_create(static::TYPE));
|
||||
} else {
|
||||
parent::__construct($uuid, true);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class UuidV1 extends Uuid implements TimeBasedUidInterface
|
||||
return uuid_mac($this->uid);
|
||||
}
|
||||
|
||||
public static function generate(\DateTimeInterface $time = null, Uuid $node = null): string
|
||||
public static function generate(?\DateTimeInterface $time = null, ?Uuid $node = null): string
|
||||
{
|
||||
$uuid = !$time || !$node ? uuid_create(static::TYPE) : parent::NIL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user