mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Apply nullable and void typehints to events namespace
This commit is contained in:
@ -71,7 +71,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
/**
|
||||
* @param string $message
|
||||
*/
|
||||
public function setMessage(string $message){
|
||||
public function setMessage(string $message) : void{
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
*
|
||||
* @param Player $player
|
||||
*/
|
||||
public function setPlayer(Player $player){
|
||||
public function setPlayer(Player $player) : void{
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
/**
|
||||
* @param string $format
|
||||
*/
|
||||
public function setFormat(string $format){
|
||||
public function setFormat(string $format) : void{
|
||||
$this->format = $format;
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
/**
|
||||
* @param Player[] $recipients
|
||||
*/
|
||||
public function setRecipients(array $recipients){
|
||||
public function setRecipients(array $recipients) : void{
|
||||
$this->recipients = $recipients;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user