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.
1 parent dbd1fee commit 4b42411Copy full SHA for 4b42411
messenger.rst
@@ -2603,12 +2603,10 @@ Let's say you want to create a message decoder::
2603
{
2604
public function decode(array $encodedEnvelope): Envelope
2605
2606
- $envelope = \json_decode($encodedEnvelope, true);
2607
-
2608
try {
2609
// parse the data you received with your custom fields
2610
- $data = $envelope['data'];
2611
- $data['token'] = $envelope['token'];
+ $data = $encodedEnvelope['data'];
+ $data['token'] = $encodedEnvelope['token'];
2612
2613
// other operations like getting information from stamps
2614
} catch (\Throwable $throwable) {
0 commit comments