mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Apply nullable and void typehints to events namespace
This commit is contained in:
@ -70,7 +70,7 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
/**
|
||||
* @param TextContainer|string $deathMessage
|
||||
*/
|
||||
public function setDeathMessage($deathMessage){
|
||||
public function setDeathMessage($deathMessage) : void{
|
||||
$this->deathMessage = $deathMessage;
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
return $this->keepInventory;
|
||||
}
|
||||
|
||||
public function setKeepInventory(bool $keepInventory){
|
||||
public function setKeepInventory(bool $keepInventory) : void{
|
||||
$this->keepInventory = $keepInventory;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user