Skip to content

Commit

Permalink
Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Dec 30, 2023
1 parent c2090e9 commit 00b8d71
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/tests/Sprunje/ActivitySprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ActivitySprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, User> */
protected EloquentCollection $users;

public function setUp(): void
Expand Down
1 change: 1 addition & 0 deletions app/tests/Sprunje/GroupSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class GroupSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, Group> */
protected EloquentCollection $groups;

public function setUp(): void
Expand Down
1 change: 1 addition & 0 deletions app/tests/Sprunje/PermissionSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class PermissionSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, Permission> */
protected EloquentCollection $permissions;

public function setUp(): void
Expand Down
1 change: 1 addition & 0 deletions app/tests/Sprunje/PermissionUserSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class PermissionUserSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, User> */
protected EloquentCollection $users;
protected RoleInterface $role;
protected PermissionInterface $permission;
Expand Down
1 change: 1 addition & 0 deletions app/tests/Sprunje/RoleSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class RoleSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, Role> */
protected EloquentCollection $roles;

public function setUp(): void
Expand Down
3 changes: 2 additions & 1 deletion app/tests/Sprunje/UserPermissionSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ class UserPermissionSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, Permission> */
protected EloquentCollection $permissions;
protected UserInterface $user;
protected RoleInterface $role;
protected EloquentCollection $permissions;

public function setUp(): void
{
Expand Down
1 change: 1 addition & 0 deletions app/tests/Sprunje/UserSprunjeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class UserSprunjeTest extends AdminTestCase
{
use RefreshDatabase;

/** @var EloquentCollection<int, User> */
protected EloquentCollection $users;

public function setUp(): void
Expand Down

0 comments on commit 00b8d71

Please sign in to comment.