diff --git a/src/Events/EventWatcher.php b/src/Events/EventWatcher.php index bab93734..bae9ae7d 100644 --- a/src/Events/EventWatcher.php +++ b/src/Events/EventWatcher.php @@ -12,7 +12,6 @@ public function __construct(protected Client $client) {} public function register(): void { Event::listen('*', function (string $eventName, array $data) { - $event = $data[0] ?? (object) null; if (! method_exists($event, 'broadcastOn')) { diff --git a/src/Windows/Window.php b/src/Windows/Window.php index 17b3ecb2..7eadd248 100644 --- a/src/Windows/Window.php +++ b/src/Windows/Window.php @@ -24,7 +24,7 @@ class Window protected bool $kiosk = false; - protected $rememberState = false; + protected bool $rememberState = false; protected bool $alwaysOnTop = false; @@ -362,4 +362,9 @@ public function fromRuntimeWindow(object $window): static return $this; } + + public function __get($var) + { + return $this->$var ?? null; + } }