diff --git a/src/TgBotLib/Objects/Telegram/BotCommandScope.php b/src/TgBotLib/Objects/Telegram/BotCommandScope.php index 62ef6b0..ba785d0 100644 --- a/src/TgBotLib/Objects/Telegram/BotCommandScope.php +++ b/src/TgBotLib/Objects/Telegram/BotCommandScope.php @@ -75,9 +75,9 @@ * Constructs object from an array representation * * @param array $data - * @return BotCommandScope + * @return ObjectTypeInterface */ - public static function fromArray(array $data): self + public static function fromArray(array $data): ObjectTypeInterface { if(isset($data['type'])) {