Skip to content

Commit 657e662

Browse files
committed
minor #14535 [Messenger] Fix a typo on Messenger handler results example (alepdev)
This PR was submitted for the 4.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Messenger] Fix a typo on Messenger handler results example This fixes typo on the Messenger handler results sample snippet by renaming `Result` object since the definition in the import and the name used in the return type of the function did not match. I fixed with `ListItemsResult` instead of `ListItemsQueryResult` but tell me which one is better. Commits ------- 1e4a70f Fix a typo on Messenger handler results example
2 parents 6d1fac8 + 1e4a70f commit 657e662

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
@@ -40,7 +40,7 @@ handler is registered. The ``HandleTrait`` can be used in any class that has a
4040
namespace App\Action;
4141

4242
use App\Message\ListItemsQuery;
43-
use App\MessageHandler\ListItemsQueryResult;
43+
use App\MessageHandler\ListItemsResult;
4444
use Symfony\Component\Messenger\HandleTrait;
4545
use Symfony\Component\Messenger\MessageBusInterface;
4646

0 commit comments

Comments
 (0)