From 0b83b671ad30eac7fb79a92de6b3bdfcc599ca5c Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 16 Feb 2024 07:56:31 +0900 Subject: [PATCH] docs: add/remove PHPDoc types --- app/Entities/Monster.php | 2 ++ tests/database/FakerTest.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Entities/Monster.php b/app/Entities/Monster.php index 488bd85..a9d6c30 100644 --- a/app/Entities/Monster.php +++ b/app/Entities/Monster.php @@ -9,6 +9,8 @@ * * This class represents a single row in the * `monsters` database. + * + * @property int $dungeon_id */ class Monster extends Entity { diff --git a/tests/database/FakerTest.php b/tests/database/FakerTest.php index a2836b5..8639b31 100644 --- a/tests/database/FakerTest.php +++ b/tests/database/FakerTest.php @@ -43,8 +43,8 @@ public function testMakesValidMonster() // Since our Faker uses Fabricator counts for its dungeon_id we should always have a valid dungeon available public function testMakesMonsterWithDungeon() { + /** @var Monster $monster */ $monster = $this->fabricator->make(); - /** @var Dungeon $dungeon */ $dungeon = model(DungeonModel::class)->find($monster->dungeon_id); $this->assertInstanceOf(Dungeon::class, $dungeon);