composer update
This commit is contained in:
Vendored
+3
-3
@@ -350,8 +350,8 @@ class Uuid implements UuidInterface
|
||||
throw new UnsupportedOperationException('Not a time-based UUID');
|
||||
}
|
||||
|
||||
$unixTime = ($this->getTimestamp() - 0x01b21dd213814000) / 1e7;
|
||||
$unixTime = number_format($unixTime, 0, '', '');
|
||||
$unixTimeNanoseconds = $this->getTimestamp() - 0x01b21dd213814000;
|
||||
$unixTime = ($unixTimeNanoseconds - $unixTimeNanoseconds % 1e7) / 1e7;
|
||||
|
||||
return new DateTime("@{$unixTime}");
|
||||
}
|
||||
@@ -676,7 +676,7 @@ class Uuid implements UuidInterface
|
||||
*/
|
||||
public static function isValid($uuid)
|
||||
{
|
||||
$uuid = str_replace(['urn:', 'uuid:', '{', '}'], '', $uuid);
|
||||
$uuid = str_replace(['urn:', 'uuid:', 'URN:', 'UUID:', '{', '}'], '', $uuid);
|
||||
|
||||
if ($uuid == self::NIL) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user