HungerManager: use AttributeMap->mustGet()

fixes 2 errors on phpstan level 8
This commit is contained in:
Dylan K. Taylor
2020-06-27 01:20:03 +01:00
parent 7e391a8123
commit 3c1b8b83f5
2 changed files with 1 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ class HungerManager{
}
private static function fetchAttribute(Entity $entity, string $attributeId) : Attribute{
$attribute = AttributeFactory::getInstance()->get($attributeId);
$attribute = AttributeFactory::getInstance()->mustGet($attributeId);
$entity->getAttributeMap()->add($attribute);
return $attribute;
}