Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 12, 2020
1 parent 657e662 commit d84c04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messenger/handler_results.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ handler is registered. The ``HandleTrait`` can be used in any class that has a
namespace App\Action;

use App\Message\ListItemsQuery;
use App\MessageHandler\ListItemsResult;
use App\MessageHandler\ListItemsQueryResult;
use Symfony\Component\Messenger\HandleTrait;
use Symfony\Component\Messenger\MessageBusInterface;

Expand All @@ -62,7 +62,7 @@ handler is registered. The ``HandleTrait`` can be used in any class that has a
}

// Creating such a method is optional, but allows type-hinting the result
private function query(ListItemsQuery $query): ListItemsResult
private function query(ListItemsQuery $query): ListItemsQueryResult
{
return $this->handle($query);
}
Expand Down

0 comments on commit d84c04c

Please sign in to comment.