Skip to content

Commit c4fc253

Browse files
committed
#27: add Bot API 4.7 review fixes
1 parent 9a0e068 commit c4fc253

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Traits/GetMethodTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public function getMe(GetMeMethod $method): UserType
6161
/**
6262
* @throws ResponseException
6363
*
64-
* @return mixed
64+
* @return BotCommandType[]
6565
*/
66-
public function getMyCommands(GetMyCommandsMethod $method)
66+
public function getMyCommands(GetMyCommandsMethod $method): array
6767
{
68-
return $this->call($method, BotCommandType::class);
68+
return $this->call($method, BotCommandType::class . '[]');
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)