From 5c89341428e73442bf3ef6068df232fe5bf564f3 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Fri, 14 Aug 2026 02:51:34 -0400 Subject: [PATCH] clarify Dispatcher@run parameters and allows to throw errors inside events or filters --- flight/core/Dispatcher.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 8cad2c5..6d427a0 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -72,11 +72,9 @@ class Dispatcher * Dispatches an event. * * @param string $name Event name. - * @param array $params Callback parameters. - * - * @throws Exception If event name isn't found or if event throws an `Exception`. - * - * @return mixed Output of callback + * @param mixed[] $params Event callable parameters. + * @return mixed Output of event callable. + * @throws Throwable If event name isn't found or if event throws an `Throwable`. */ public function run(string $name, array $params = []) {