diff --git a/Struct.php b/Struct.php index 6cbe236..b418954 100644 --- a/Struct.php +++ b/Struct.php @@ -16,6 +16,12 @@ class Struct public int $priority; + + /** + * @param string $event + * @param array|\Closure|string $listener + * @param int $priority + */ public function __construct(string $event, array|\Closure|string $listener, int $priority) { $this->event = $event; diff --git a/TestListener.php b/TestListener.php index 054fbe8..695e6ea 100644 --- a/TestListener.php +++ b/TestListener.php @@ -6,7 +6,10 @@ class TestListener implements EventInterface { - public function process() + /** + * @return void + */ + public function process(): void { // TODO: Implement process() method. }