Modernize private property declarations in src/item

This commit is contained in:
Dylan K. Taylor
2022-05-17 20:59:24 +01:00
parent fb4d332d1a
commit 95ad3f16e1
21 changed files with 44 additions and 100 deletions

View File

@@ -24,11 +24,8 @@ declare(strict_types=1);
namespace pocketmine\item;
final class ItemIdentifier{
/** @var int */
private $id;
/** @var int */
private $meta;
private int $id;
private int $meta;
public function __construct(int $id, int $meta){
if($id < -0x8000 || $id > 0x7fff){ //signed short range