Fixed docblocks in Dispatcher::class

pull/528/head
fadrian06 1 year ago
parent 875d25f308
commit c054e1430d

@ -41,7 +41,7 @@ class Dispatcher
* *
* @throws Exception * @throws Exception
* *
* @return mixed|null Output of callback * @return mixed Output of callback
*/ */
public function run(string $name, array $params = []) public function run(string $name, array $params = [])
{ {
@ -80,7 +80,7 @@ class Dispatcher
* *
* @param string $name Event name * @param string $name Event name
* *
* @return callable $callback Callback function * @return ?callable $callback Callback function
*/ */
public function get(string $name): ?callable public function get(string $name): ?callable
{ {
@ -100,10 +100,9 @@ class Dispatcher
} }
/** /**
* Clears an event. If no name is given, * Clears an event. If no name is given, all events are removed.
* all events are removed.
* *
* @param string|null $name Event name * @param ?string $name Event name
*/ */
public function clear(?string $name = null): void public function clear(?string $name = null): void
{ {

Loading…
Cancel
Save