diff --git a/flight/core/EventDispatcher.php b/flight/core/EventDispatcher.php index 98e79fb..1c84d26 100644 --- a/flight/core/EventDispatcher.php +++ b/flight/core/EventDispatcher.php @@ -11,16 +11,12 @@ class EventDispatcher /** @var array */ protected array $listeners = []; - /** - * Singleton instance of the EventDispatcher. - * - * @return self - */ public static function getInstance(): self { if (self::$instance === null) { self::$instance = new self(); } + return self::$instance; }