From 3edc0b6bc40dcb1c7868899a8eac60f78c8fd465 Mon Sep 17 00:00:00 2001 From: Gijs van Lammeren Date: Thu, 14 Jan 2021 16:52:12 +0100 Subject: [PATCH] [Messenger][AmazonSqs] Fix auto-setup for fifo queue --- Transport/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Transport/Connection.php b/Transport/Connection.php index 8310266..5b6196f 100644 --- a/Transport/Connection.php +++ b/Transport/Connection.php @@ -258,7 +258,9 @@ public function setup(): void $parameters = ['QueueName' => $this->configuration['queue_name']]; if (self::isFifoQueue($this->configuration['queue_name'])) { - $parameters['FifoQueue'] = true; + $parameters['Attributes'] = [ + 'FifoQueue' => 'true', + ]; } $this->client->createQueue($parameters);