Skip to content

Commit 8427340

Browse files
committed
test: add @var for PHPStan
------ ----------------------------------------------------- Line tests/system/Models/FindModelTest.php ------ ----------------------------------------------------- 50 Cannot access property $name on array<int, array>. 51 Cannot access property $email on array<int, array>. ------ -----------------------------------------------------
1 parent de1fbef commit 8427340

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/system/Models/FindModelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function testFindReturnsEntityWithCasts(): void
4545
]);
4646
$id = $this->model->insert($user, true);
4747

48+
/** @var UserWithCasts $user */
4849
$user = $this->model->find($id);
4950

5051
$this->assertSame('John Smith', $user->name);

0 commit comments

Comments
 (0)