diff --git a/src/danog/MadelineProto/InternalDoc.php b/src/danog/MadelineProto/InternalDoc.php index 0414b67a..3829583a 100644 --- a/src/danog/MadelineProto/InternalDoc.php +++ b/src/danog/MadelineProto/InternalDoc.php @@ -5427,7 +5427,7 @@ class InternalDoc extends APIFactory * * @return EventHandler */ - public function getEventHandler(array $extra = []): \EventHandler + public function getEventHandler(array $extra = []): EventHandler { return $this->API->getEventHandler($extra); } diff --git a/src/danog/MadelineProto/Wrappers/Events.php b/src/danog/MadelineProto/Wrappers/Events.php index 084d0bcf..209a3bc9 100644 --- a/src/danog/MadelineProto/Wrappers/Events.php +++ b/src/danog/MadelineProto/Wrappers/Events.php @@ -95,7 +95,7 @@ trait Events * * @return EventHandler */ - public function getEventHandler(): EventHandler + public function getEventHandler(): \danog\MadelineProto\EventHandler { return $this->event_handler_instance; }