Fixed doc type inconsistencies surrounding chat broadcast handling (several problems that are all related)

This commit is contained in:
Dylan K. Taylor
2019-12-01 21:40:11 +00:00
parent dbab8b5733
commit c4a8781b5c
2 changed files with 10 additions and 9 deletions

View File

@ -1789,7 +1789,7 @@ class Server{
/**
* @param TextContainer|string $message
* @param Player[] $recipients
* @param CommandSender[] $recipients
*
* @return int
*/
@ -1798,7 +1798,7 @@ class Server{
return $this->broadcast($message, self::BROADCAST_CHANNEL_USERS);
}
/** @var Player[] $recipients */
/** @var CommandSender[] $recipients */
foreach($recipients as $recipient){
$recipient->sendMessage($message);
}