8000 Update the example how to fetch an envelope stamp · symfony/symfony-docs@9347ccb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9347ccb

Browse files
authored
Update the example how to fetch an envelope stamp
`get` was replaced with `last`: symfony/messenger@7ae60a2
1 parent 2086b16 commit 9347ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/messenger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Hence you can inspect the envelope content and its stamps, or add any::
163163
{
164164
public function handle(Envelope $envelope, StackInterface $stack): Envelope
165165
{
166-
if (null !== $envelope->get(ReceivedStamp::class)) {
166+
if (null !== $envelope->last(ReceivedStamp::class)) {
167167
// Message just has been received...
168168

169169
// You could for example add another stamp.

0 commit comments

Comments
 (0)
0