File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -289,11 +289,10 @@ do is to write your own CSV receiver::
289
289
{
290
290
// Receive the envelope according to your transport ($yourEnvelope here),
291
291
// in most cases, using a connection is the easiest solution.
292
-
293
292
if (null === $yourEnvelope) {
294
293
return [];
295
294
}
296
-
295
+
297
296
try {
298
297
$envelope = $this->serializer->decode([
299
298
'body' => $yourEnvelope['body'],
@@ -303,8 +302,8 @@ do is to write your own CSV receiver::
303
302
$this->connection->reject($yourEnvelope['id']);
304
303
throw $exception;
305
304
}
306
-
307
- return [$yourEnvelope ->with(new CustomStamp($yourEnvelope['id']);
305
+
306
+ return [$envelope ->with(new CustomStamp($yourEnvelope['id']);
308
307
}
309
308
310
309
public function ack(Envelope $envelope): void
You can’t perform that action at this time.
0 commit comments