Skip to content

Commit

Permalink
Merge pull request #443 from BoShurik/join-users-doc
Browse files Browse the repository at this point in the history
Fix Message::newChatMembers phpDoc
  • Loading branch information
BoShurik authored Aug 9, 2023
2 parents ead0e4d + d8d0344 commit 2a76145
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 2a76145

Please sign in to comment.