Skip to content

Commit bdebfee

Browse files
committed
docs: update @var types
1 parent 80221d6 commit bdebfee

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

app/Models/AbilityModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AbilityModel extends Model
3737
protected $skipValidation = false;
3838

3939
/**
40-
* @var string[]
40+
* @var list<string>
4141
*/
4242
protected $allowedFields = ['name', 'damage', 'cooldown'];
4343

app/Models/DungeonModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DungeonModel extends Model
3232
protected $useSoftDeletes = false;
3333

3434
/**
35-
* @var string[]
35+
* @var list<string>
3636
*/
3737
protected $allowedFields = ['name', 'difficulty', 'capacity'];
3838

@@ -51,7 +51,7 @@ class DungeonModel extends Model
5151
];
5252

5353
/**
54-
* @var mixed[]
54+
* @var array<string, array<string, string>>
5555
*/
5656
protected $validationMessages = [];
5757

app/Models/HeroModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class HeroModel extends Model
2727
protected $useSoftDeletes = true;
2828

2929
/**
30-
* @var string[]
30+
* @var list<string>
3131
*/
3232
protected $allowedFields = ['name', 'class', 'level', 'pronoun', 'image'];
3333

@@ -45,7 +45,7 @@ class HeroModel extends Model
4545
];
4646

4747
/**
48-
* @var mixed[]
48+
* @var array<string, array<string, string>>
4949
*/
5050
protected $validationMessages = [];
5151

app/Models/MonsterModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MonsterModel extends Model
3838
protected $skipValidation = false;
3939

4040
/**
41-
* @var string[]
41+
* @var list<string>
4242
*/
4343
protected $allowedFields = ['name', 'health', 'dungeon_id'];
4444

@@ -52,7 +52,7 @@ class MonsterModel extends Model
5252
];
5353

5454
/**
55-
* @var mixed[]
55+
* @var array<string, array<string, string>>
5656
*/
5757
protected $validationMessages = [];
5858
}

tests/_support/DatabaseTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tests\Support;
44

5+
use CodeIgniter\Database\Seeder;
56
use CodeIgniter\Test\CIUnitTestCase;
67
use CodeIgniter\Test\DatabaseTestTrait;
78

@@ -23,7 +24,7 @@ abstract class DatabaseTestCase extends CIUnitTestCase
2324
* The seed file(s) used for all tests within this test case.
2425
* Should be fully-namespaced or relative to $basePath
2526
*
26-
* @var array|string
27+
* @var class-string<Seeder>|list<class-string<Seeder>>
2728
*/
2829
protected $seed = 'App\Database\Seeds\PlaygroundSeeder';
2930

0 commit comments

Comments
 (0)