Skip to content

Commit 82d86c2

Browse files
committed
docs: add @var types
1 parent d9d2aa9 commit 82d86c2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parameters:
1111
- app/Views/*
1212
ignoreErrors:
1313
- '#Call to an undefined method CodeIgniter\\Database\\ConnectionInterface::(en|dis)ableForeignKeyChecks#'
14-
- '#Cannot access property [\$a-z_]+ on (array|object)#'
1514
universalObjectCratesClasses:
1615
- CodeIgniter\Entity
1716
- CodeIgniter\Entity\Entity

tests/database/FakerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ protected function setUp(): void
3434
public function testMakesValidMonster()
3535
{
3636
// We can use make() to generate a random dataset defined in our Faker
37+
/** @var Monster $monster */
3738
$monster = $this->fabricator->make();
3839

3940
$this->assertInstanceOf(Monster::class, $monster);
@@ -53,6 +54,7 @@ public function testMakesMonsterWithDungeon()
5354
public function testCreateAddsToDatabase()
5455
{
5556
// create() generates a random dataset just like make() but also adds it to the database for us
57+
/** @var Monster $monster */
5658
$monster = $this->fabricator->create();
5759
$this->assertIsInt($monster->id);
5860

0 commit comments

Comments
 (0)