diff --git a/src/Service/EventService.php b/src/Service/EventService.php index 4a35b3a..cf64f92 100644 --- a/src/Service/EventService.php +++ b/src/Service/EventService.php @@ -112,7 +112,9 @@ public function addListenerLoader(ListenerLoaderInterface $loader): void * Dispatches an event to all registered listeners * * @template T of object + * * @param T $event + * * @return Future */ public function dispatch(object $event): Future diff --git a/tests/php/Service/EventServiceTest.php b/tests/php/Service/EventServiceTest.php index fbc8124..6e253fd 100644 --- a/tests/php/Service/EventServiceTest.php +++ b/tests/php/Service/EventServiceTest.php @@ -10,7 +10,7 @@ class EventServiceTest extends SapphireTest { - private function getService(): EventService + private function getService(): EventService { return Injector::inst()->get(EventService::class); }