codeigniter4-uuid icon indicating copy to clipboard operation
codeigniter4-uuid copied to clipboard

feat: add `fromValue()` method for safe UUID parsing

Open WitER opened this issue 4 months ago • 12 comments

  • 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 call uuid->fromString(...) \ uuid->fromBytes(...) to uuid->fromValue(...) - fix possible exceptions when the model tries to build a UUID from a string for a raw binary value.
  • All tests passed

WitER avatar Jun 10 '25 18:06 WitER