mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
More nullable and void typehints
This commit is contained in:
@ -49,7 +49,7 @@ class ChorusFruit extends Food{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function onConsume(Living $consumer){
|
||||
public function onConsume(Living $consumer) : void{
|
||||
$level = $consumer->getLevel();
|
||||
assert($level !== null);
|
||||
|
||||
|
Reference in New Issue
Block a user