Skip to content

Commit 62c0653

Browse files
committed
minor symfony#16167 Update handler_results.rst (erop)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update handler_results.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases 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 `5.x` for features of unreleased versions). --> Commits ------- 89a5ee0 Update handler_results.rst
2 parents 9095b60 + 89a5ee0 commit 62c0653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messenger/handler_results.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can use this to get the value returned by the handler(s)::
1111
use Symfony\Component\Messenger\MessageBusInterface;
1212
use Symfony\Component\Messenger\Stamp\HandledStamp;
1313

14-
$envelope = $messageBus->dispatch(SomeMessage());
14+
$envelope = $messageBus->dispatch(new SomeMessage());
1515

1616
// get the value that was returned by the last message handler
1717
$handledStamp = $envelope->last(HandledStamp::class);

0 commit comments

Comments
 (0)