codeigniter4-uuid
codeigniter4-uuid copied to clipboard
feat: add `fromValue()` method for safe UUID parsing
- Added method
Uuid::fromValue- for automatic convert passed value to a UUID interface (from string or raw binary) - Added test for new method
- Updated
UuidModel- changed calluuid->fromString(...)\uuid->fromBytes(...)touuid->fromValue(...)- fix possible exceptions when the model tries to build a UUID from a string for a raw binary value. - All tests passed