Merge branch '4.4' into 5.2

* 4.4:
  hotfix
This commit is contained in:
Nicolas Grekas 2021-07-21 15:21:32 +02:00
commit 4dd5f7bc75
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class PhpSerializer implements SerializerInterface
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']);
}