From 76078660476a6abf82770bc289e159377d5cf8fd Mon Sep 17 00:00:00 2001 From: Martins Sipenko Date: Tue, 23 Oct 2018 13:14:44 +0300 Subject: [PATCH] Update dispatch example Dispatch method returns `void`. The change fixes confusion that bus can return things. --- components/messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/messenger.rst b/components/messenger.rst index 1b3ac183d09..97b27a6643c 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -70,7 +70,7 @@ Example:: ])), ]); - $result = $bus->dispatch(new MyMessage(/* ... */)); + $bus->dispatch(new MyMessage(/* ... */)); .. note::