mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Type-hinted NBT tag constructors, made getValue() and setValue() more strict, fix dozens of assorted related bugs
This commit is contained in:
@ -30,15 +30,15 @@ interface Nameable{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
public function getName() : string;
|
||||
|
||||
/**
|
||||
* @param void $str
|
||||
* @param string $str
|
||||
*/
|
||||
public function setName($str);
|
||||
public function setName(string $str);
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasName();
|
||||
public function hasName() : bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user