remove reduntant EventDispatcher@getInstance description

pull/722/head
fadrian06 3 days ago
parent 3066c5dcc4
commit 8d29ad4fd0

@ -11,16 +11,12 @@ class EventDispatcher
/** @var array<string, callable[]> */ /** @var array<string, callable[]> */
protected array $listeners = []; protected array $listeners = [];
/**
* Singleton instance of the EventDispatcher.
*
* @return self
*/
public static function getInstance(): self public static function getInstance(): self
{ {
if (self::$instance === null) { if (self::$instance === null) {
self::$instance = new self(); self::$instance = new self();
} }
return self::$instance; return self::$instance;
} }

Loading…
Cancel
Save