mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
b805572537
With this change, `Uuid::uuid1()`, `Uuid::uuid2()` and so forth now produce a `LazyUuidFromString` instance, which is both more memory efficient and comparable to `Uuid::fromString()` instances in other tools, such as within PHPUnit's `Assertion::assertEqual()`, which would reject any two objects not matching each other's types. Before this patch, `Assertion::assertEquals(Uuid::uuid5(...), Uuid::fromString(...))` would always fail due to different subtypes produced by the two factory methods.