mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Add type-hints to Item::get() (these parameters cannot be null anymore)
This commit is contained in:
parent
9869aaa46a
commit
2290c33143
@ -290,7 +290,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function get(int $id, $meta = 0, int $count = 1, $tags = "") : Item{
|
public static function get(int $id, int $meta = 0, int $count = 1, string $tags = "") : Item{
|
||||||
try{
|
try{
|
||||||
$class = self::$list[$id];
|
$class = self::$list[$id];
|
||||||
if($class === null){
|
if($class === null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user