Skip to content

Commit 314804c

Browse files
authored
Update DbalProducer.php
from this thread ramsey/uuid#327 ramsey/uuid 4.1 introduced LazyUuidFromString object which is used over the original Uuid object this causes conversions issues when using the objects, but can simply use toString() from UuidInterface to convert to actual guid when inserting
1 parent bb6e759 commit 314804c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dbal/DbalProducer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function send(Destination $destination, Message $message): void
6666
;
6767

6868
$dbalMessage = [
69-
'id' => Uuid::uuid4(),
69+
'id' => Uuid::uuid4()->toString(),
7070
'published_at' => $publishedAt,
7171
'body' => $body,
7272
'headers' => JSON::encode($message->getHeaders()),

0 commit comments

Comments
 (0)