Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Message::newChatMembers phpDoc #443

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading