Use the codec to encode to binary when using Uuid::getBytes()

This commit is contained in:
Ben Ramsey
2020-01-08 20:10:37 -06:00
parent 4d1db4d090
commit 668b6ab9a2
5 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class StringCodec implements CodecInterface
*/
public function encodeBinary(UuidInterface $uuid): string
{
return $uuid->getBytes();
return (string) hex2bin($uuid->getHex());
}
/**