Skip to content

Commit

Permalink
Fix Message::newChatMembers phpDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
BoShurik committed Aug 9, 2023
1 parent a829ef4 commit d227190
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ All Notable changes to `PHP Telegram Bot Api` will be documented in this file
- Rename `thumb` to `thumbnail` parameter in `Animation`, `Document`, `Sticker`, `StickerSet`, `Video`, `VideoNote` types
- Rename `thumb_*` to `thumbnail_*` parameter in `Inline/QueryResult` types
- Add missing phpDoc for `$replyMarkup` parameters
-
- Fix phpDoc for `\TelegramBot\Api\Types\Message::$newChatMembers`

### Deprecated
- Deprecate using `thumb*` methods in `\TelegramBot\Api\BotApi`
- Deprecate method `\TelegramBot\Api\BotApi::setStickerSetThumb`. Use `\TelegramBot\Api\BotApi::setStickerSetThumbnail` instead
Expand Down
6 changes: 3 additions & 3 deletions src/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -1003,15 +1003,15 @@ public function setDice(Dice $dice)
}

/**
* @return array|null
* @return \TelegramBot\Api\Types\User[]|null
*/
public function getNewChatMembers()
{
return $this->newChatMembers;
}

/**
* @param array $newChatMembers
* @param \TelegramBot\Api\Types\User[]|null $newChatMembers
* @return void
*/
public function setNewChatMembers($newChatMembers)
Expand Down

0 comments on commit d227190

Please sign in to comment.