We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f11bec + ba6f65d commit e20fd2fCopy full SHA for e20fd2f
messenger.rst
@@ -2965,12 +2965,10 @@ Let's say you want to create a message decoder::
2965
{
2966
public function decode(array $encodedEnvelope): Envelope
2967
2968
- $envelope = \json_decode($encodedEnvelope, true);
2969
-
2970
try {
2971
// parse the data you received with your custom fields
2972
- $data = $envelope['data'];
2973
- $data['token'] = $envelope['token'];
+ $data = $encodedEnvelope['data'];
+ $data['token'] = $encodedEnvelope['token'];
2974
2975
// other operations like getting information from stamps
2976
} catch (\Throwable $throwable) {
0 commit comments