mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +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;
|
||||
}
|
||||
|
||||
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{
|
||||
$class = self::$list[$id];
|
||||
if($class === null){
|
||||
|
Loading…
x
Reference in New Issue
Block a user