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:
parent
daf98b698b
commit
a9c35bd987
@ -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);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ trait Events
|
||||
*
|
||||
* @return EventHandler
|
||||
*/
|
||||
public function getEventHandler(): EventHandler
|
||||
public function getEventHandler(): \danog\MadelineProto\EventHandler
|
||||
{
|
||||
return $this->event_handler_instance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user