From d8d0344a3442ce2b13800649dd416c0cdbf8e9b3 Mon Sep 17 00:00:00 2001 From: BoShurik Date: Wed, 9 Aug 2023 15:43:32 +0300 Subject: [PATCH] Fix Message::newChatMembers phpDoc --- CHANGELOG.md | 1 + src/Types/Message.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24acbe10..057fa6fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All Notable changes to `PHP Telegram Bot Api` will be documented in this file - Rename `thumb_*` to `thumbnail_*` parameter in `Inline/QueryResult` types - Add missing phpDoc for `$replyMarkup` parameters - Fix phpDoc for `\TelegramBot\Api\BotApi::setWebhook` `$allowedUpdates` parameter. Automatically serialize if array passed +- Fix phpDoc for `\TelegramBot\Api\Types\Message::$newChatMembers` ### Deprecated - Deprecate using `thumb*` methods in `\TelegramBot\Api\BotApi` diff --git a/src/Types/Message.php b/src/Types/Message.php index abd6adad..c344bfd5 100644 --- a/src/Types/Message.php +++ b/src/Types/Message.php @@ -308,7 +308,7 @@ class Message extends BaseType implements TypeInterface * (the bot itself may be one of these members) * array of \TelegramBot\Api\Types\User * - * @var array|null + * @var \TelegramBot\Api\Types\User[]|null */ protected $newChatMembers; @@ -1003,7 +1003,7 @@ public function setDice(Dice $dice) } /** - * @return array|null + * @return \TelegramBot\Api\Types\User[]|null */ public function getNewChatMembers() { @@ -1011,7 +1011,7 @@ public function getNewChatMembers() } /** - * @param array $newChatMembers + * @param \TelegramBot\Api\Types\User[]|null $newChatMembers * @return void */ public function setNewChatMembers($newChatMembers)