Wrong return type on API::getEventHandler (#751)

* Update InternalDoc.php

wrong return type it must be ```php \danog\MadelineProto\EventHandler``` and not ```php \EventHandler```

* Update Events.php

wrong namespace on return type
This commit is contained in:
Sajjad Servatjoo 2020-01-15 20:33:15 +03:30 committed by Daniil Gentili
parent daf98b698b
commit a9c35bd987
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -95,7 +95,7 @@ trait Events
*
* @return EventHandler
*/
public function getEventHandler(): EventHandler
public function getEventHandler(): \danog\MadelineProto\EventHandler
{
return $this->event_handler_instance;
}