8000 minor #10726 Update the example how to fetch an envelope stamp (jakzal) · symfony/symfony-docs@79415b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 79415b8

Browse files
committed
minor #10726 Update the example how to fetch an envelope stamp (jakzal)
This PR was merged into the 4.2 branch. Discussion ---------- Update the example how to fetch an envelope stamp `get` was replaced with `last`: symfony/messenger@7ae60a2 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9347ccb Update the example how to fetch an envelope stamp
2 parents 2086b16 + 9347ccb commit 79415b8

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