uuid icon indicating copy to clipboard operation
uuid copied to clipboard

Ramsey\Uuid\Uuid::uuid6() is not an instance of Ramsey\Uuid\Nonstandard\UuidV6 anymore

Open haclong opened this issue 3 years ago • 2 comments

hello as said in the title, this : $uuid = Ramsey\Uuid\Uuid::uuid6() ; $uuid instanceof Ramsey\Uuid\Nonstandard\UuidV6 now returns false...

if i do get_class($uuid), i'll get : Ramsey\Uuid\Lazy\LazyUuidFromString object...

since i would prefer to be sure to have the time ordered Uuid, is it something i still can check somehow ?

haclong avatar Oct 18 '20 10:10 haclong

Note to me, so that these get linked together: this is related to #327.

ramsey avatar Oct 19 '20 18:10 ramsey

following this topic as well, I really want to be able to verify that a Uuid::uuid6 is an instance of Ramsey\Uuid\Nonstandard\Uuidv6 otherwise i have no of knowing that the uuid being passed is a uuid type6.

danfoley avatar Sep 17 '21 02:09 danfoley