Skip to content

Commit

Permalink
Update DbalProducer.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KrisHarris committed Apr 2, 2024
1 parent bb6e759 commit 314804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dbal/DbalProducer.php
Expand Up @@ -66,7 +66,7 @@ public function send(Destination $destination, Message $message): void
;

$dbalMessage = [
'id' => Uuid::uuid4(),
'id' => Uuid::uuid4()->toString(),
'published_at' => $publishedAt,
'body' => $body,
'headers' => JSON::encode($message->getHeaders()),
Expand Down

0 comments on commit 314804c

Please sign in to comment.