Skip to content

Commit 7607866

Browse files
Update dispatch example
Dispatch method returns `void`. The change fixes confusion that bus can return things.
1 parent 0b5d88c commit 7607866

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)