From 4ec09dcafd69f684a744092fca8b70383fa5631a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 24 Oct 2023 17:22:30 +0800 Subject: [PATCH] eee --- Struct.php | 6 ++++++ TestListener.php | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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. }