Skip to content

Commit

Permalink
docs: add/remove PHPDoc types
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 15, 2024
1 parent 2edcb38 commit 0b83b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Entities/Monster.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
* This class represents a single row in the
* `monsters` database.
*
* @property int $dungeon_id
*/
class Monster extends Entity
{
Expand Down
2 changes: 1 addition & 1 deletion tests/database/FakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b83b67

Please sign in to comment.