mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Use the codec to encode to binary when using Uuid::getBytes()
This commit is contained in:
@@ -60,7 +60,7 @@ class StringCodec implements CodecInterface
|
||||
*/
|
||||
public function encodeBinary(UuidInterface $uuid): string
|
||||
{
|
||||
return $uuid->getBytes();
|
||||
return (string) hex2bin($uuid->getHex());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user