From 432169fdea86f7dd7b4de584127ba7970e6a8b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 3 Aug 2021 18:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Events/Struct.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/System/Events/Struct.php b/System/Events/Struct.php index 4bac9185..3eeeb8f7 100644 --- a/System/Events/Struct.php +++ b/System/Events/Struct.php @@ -10,16 +10,16 @@ namespace Snowflake\Events; class Struct { - public string $event; + public string $event; - public \Closure $listener; + public array|\Closure $listener; - public int $priority; + public int $priority; - public function __construct(string $event, callable $listener, int $priority) - { - $this->event = $event; - $this->listener = $listener; - $this->priority = $priority; - } + public function __construct(string $event, callable $listener, int $priority) + { + $this->event = $event; + $this->listener = $listener; + $this->priority = $priority; + } }