Skip to content

Commit 276aaa4

Browse files
committed
docs: add @phpstan-var non-empty-string
1 parent ac18f86 commit 276aaa4

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

system/BaseModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ abstract class BaseModel
6464
* should be instantiated.
6565
*
6666
* @var string
67+
* @phpstan-var non-empty-string
6768
*/
6869
protected $DBGroup;
6970

system/Database/Config.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ class Config extends BaseConfig
3939
/**
4040
* Creates the default
4141
*
42-
* @param array|BaseConnection|string|null $group The name of the connection group to use,
43-
* or an array of configuration settings.
44-
* @param bool $getShared Whether to return a shared instance of the connection.
42+
* @param array|BaseConnection|string|null $group The name of the connection group to use,
43+
* or an array of configuration settings.
44+
* @phpstan-param array|BaseConnection|non-empty-string|null $group
45+
* @param bool $getShared Whether to return a shared instance of the connection.
4546
*
4647
* @return BaseConnection
4748
*/
@@ -125,6 +126,8 @@ public static function utils($group = null)
125126
/**
126127
* Returns a new instance of the Database Seeder.
127128
*
129+
* @phpstan-param null|non-empty-string $group
130+
*
128131
* @return Seeder
129132
*/
130133
public static function seeder(?string $group = null)

system/Database/Seeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Seeder
2626
* The name of the database group to use.
2727
*
2828
* @var string
29+
* @phpstan-var non-empty-string
2930
*/
3031
protected $DBGroup;
3132

system/Test/CIUnitTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ abstract class CIUnitTestCase extends TestCase
134134
* If not present, will use the defaultGroup.
135135
*
136136
* @var string
137+
* @phpstan-var non-empty-string
137138
*/
138139
protected $DBGroup = 'tests';
139140

0 commit comments

Comments
 (0)