clarify Dispatcher@run parameters and allows to throw errors inside events or filters

dispatcher-rework
fadrian06 5 days ago
parent 988c64ed22
commit 5c89341428

@ -72,11 +72,9 @@ class Dispatcher
* Dispatches an event. * Dispatches an event.
* *
* @param string $name Event name. * @param string $name Event name.
* @param array<int, mixed> $params Callback parameters. * @param mixed[] $params Event callable parameters.
* * @return mixed Output of event callable.
* @throws Exception If event name isn't found or if event throws an `Exception`. * @throws Throwable If event name isn't found or if event throws an `Throwable`.
*
* @return mixed Output of callback
*/ */
public function run(string $name, array $params = []) public function run(string $name, array $params = [])
{ {

Loading…
Cancel
Save