Add type-hints to Item::get() (these parameters cannot be null anymore)

This commit is contained in:
Dylan K. Taylor 2017-01-16 13:54:24 +00:00
parent 9869aaa46a
commit 2290c33143

View File

@ -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){