diff --git a/src/CommandBus/CommandBus.php b/src/CommandBus/CommandBus.php index f47ee9c28..c4c3323d5 100644 --- a/src/CommandBus/CommandBus.php +++ b/src/CommandBus/CommandBus.php @@ -4,8 +4,13 @@ namespace Patchlevel\EventSourcing\CommandBus; +use Throwable; + interface CommandBus { - /** @throws HandlerNotFound */ + /** + * @throws HandlerNotFound + * @throws Throwable + */ public function dispatch(object $command): void; }