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; + } }