Skip to content

Commit 1844867

Browse files
committed
Minor fix
1 parent 3502463 commit 1844867

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

components/messenger.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,10 @@ do is to write your own CSV receiver::
289289
{
290290
// Receive the envelope according to your transport ($yourEnvelope here),
291291
// in most cases, using a connection is the easiest solution.
292-
293292
if (null === $yourEnvelope) {
294293
return [];
295294
}
296-
295+
297296
try {
298297
$envelope = $this->serializer->decode([
299298
'body' => $yourEnvelope['body'],
@@ -303,8 +302,8 @@ do is to write your own CSV receiver::
303302
$this->connection->reject($yourEnvelope['id']);
304303
throw $exception;
305304
}
306-
307-
return [$yourEnvelope->with(new CustomStamp($yourEnvelope['id']);
305+
306+
return [$envelope->with(new CustomStamp($yourEnvelope['id']);
308307
}
309308

310309
public function ack(Envelope $envelope): void

0 commit comments

Comments
 (0)