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 ead0e4d commit d8d0344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
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 d8d0344

Please sign in to comment.