Skip to content

Commit

Permalink
Merge branch '5.2' into 5.3
Browse files Browse the repository at this point in the history
* 5.2:
  hotfix
  • Loading branch information
nicolas-grekas committed Jul 21, 2021
2 parents 18cf85e + a746545 commit 1500e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/Serialization/PhpSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 1500e5b

Please sign in to comment.