From 9347ccb227c549b2cedb6c8476e7362420ad7bbe Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Mon, 3 Dec 2018 12:08:02 +0000 Subject: [PATCH] Update the example how to fetch an envelope stamp `get` was replaced with `last`: https://github.com/symfony/messenger/commit/7ae60a29282a4e4bd618508fd80fd04f95a02cb8 --- components/messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/messenger.rst b/components/messenger.rst index 899e550d180..f53604533f9 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -163,7 +163,7 @@ Hence you can inspect the envelope content and its stamps, or add any:: { public function handle(Envelope $envelope, StackInterface $stack): Envelope { - if (null !== $envelope->get(ReceivedStamp::class)) { + if (null !== $envelope->last(ReceivedStamp::class)) { // Message just has been received... // You could for example add another stamp.