From c8c91d6b3fa2951dddc314ff30beafd0e5f437b5 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 21 Jul 2021 15:21:16 +0200 Subject: [PATCH] hotfix --- Transport/Serialization/PhpSerializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transport/Serialization/PhpSerializer.php b/Transport/Serialization/PhpSerializer.php index 659c0e54..3a480490 100644 --- a/Transport/Serialization/PhpSerializer.php +++ b/Transport/Serialization/PhpSerializer.php @@ -29,7 +29,7 @@ public function decode(array $encodedEnvelope): Envelope throw new MessageDecodingFailedException('Encoded envelope should have at least a "body".'); } - if (str_ends_with($encodedEnvelope['body'], '}')) { + if (!str_ends_with($encodedEnvelope['body'], '}')) { $encodedEnvelope['body'] = base64_decode($encodedEnvelope['body']); }