From 314804cb56caf5902880bc7a5f009c368cf89567 Mon Sep 17 00:00:00 2001 From: KrisHarris Date: Tue, 2 Apr 2024 17:05:08 +0100 Subject: [PATCH] Update DbalProducer.php from this thread https://github.com/ramsey/uuid/issues/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 --- pkg/dbal/DbalProducer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dbal/DbalProducer.php b/pkg/dbal/DbalProducer.php index f0cdea849..324912c6b 100644 --- a/pkg/dbal/DbalProducer.php +++ b/pkg/dbal/DbalProducer.php @@ -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()),