Use covariant types for InventoryHolder and Container implementors

This commit is contained in:
Dylan K. Taylor
2022-06-05 18:49:48 +01:00
parent 38cf9fc6e6
commit f2dc9187f0
11 changed files with 17 additions and 67 deletions

View File

@ -112,17 +112,11 @@ class BrewingStand extends Spawnable implements Container, Nameable{
}
}
/**
* @return BrewingStandInventory
*/
public function getInventory(){
public function getInventory() : BrewingStandInventory{
return $this->inventory;
}
/**
* @return BrewingStandInventory
*/
public function getRealInventory(){
public function getRealInventory() : BrewingStandInventory{
return $this->inventory;
}