Skip to content

Commit 0426c94

Browse files
committed
minor #10540 Update dispatch example (martinssipenko)
This PR was merged into the 4.1 branch. Discussion ---------- Update dispatch example Dispatch method returns `void`. The change fixes confusion that bus can return things. Commits ------- 7607866 Update dispatch example
2 parents 3d91928 + 7607866 commit 0426c94

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
@@ -70,7 +70,7 @@ Example::
7070
])),
7171
]);
7272

73-
$result = $bus->dispatch(new MyMessage(/* ... */));
73+
$bus->dispatch(new MyMessage(/* ... */));
7474

7575
.. note::
7676

0 commit comments

Comments
 (0)