Skip to content

Commit 4e88f88

Browse files
authored
Merge pull request #9730 from samsonasik/refactor-add-var-config-doc-tests
refactor: Add @var array<> docblock on config properties on tests/
2 parents 9524570 + 26ebd42 commit 4e88f88

File tree

12 files changed

+40
-52
lines changed

12 files changed

+40
-52
lines changed

tests/system/Validation/CreditCardRulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
final class CreditCardRulesTest extends StrictCreditCardRulesTest
2525
{
2626
protected Validation $validation;
27+
28+
/**
29+
* @var array<string, array<int|string, array<string, string>|string>>
30+
*/
2731
protected array $config = [
2832
'ruleSets' => [
2933
Rules::class,

tests/system/Validation/FileRulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
final class FileRulesTest extends StrictFileRulesTest
2525
{
2626
protected Validation $validation;
27+
28+
/**
29+
* @var array<string, array<int|string, array<string, string>|string>>
30+
*/
2731
protected array $config = [
2832
'ruleSets' => [
2933
Rules::class,

tests/system/Validation/FormatRulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class FormatRulesTest extends CIUnitTestCase
3131
public const ALPHANUMERIC = 'abcdefghijklmnopqrstuvwxyzABCDEFGHLIJKLMNOPQRSTUVWXYZ0123456789';
3232

3333
protected Validation $validation;
34+
35+
/**
36+
* @var array<string, array<int|string, array<string, string>|string>>
37+
*/
3438
protected array $config = [
3539
'ruleSets' => [
3640
Rules::class,

tests/system/Validation/RulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
class RulesTest extends CIUnitTestCase
3030
{
3131
protected Validation $validation;
32+
33+
/**
34+
* @var array<string, array<int|string, array<string, string>|string>>
35+
*/
3236
protected array $config = [
3337
'ruleSets' => [
3438
Rules::class,

tests/system/Validation/StrictRules/CreditCardRulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
class CreditCardRulesTest extends CIUnitTestCase
2929
{
3030
protected Validation $validation;
31+
32+
/**
33+
* @var array<string, array<int|string, array<string, string>|string>>
34+
*/
3135
protected array $config = [
3236
'ruleSets' => [
3337
Rules::class,

tests/system/Validation/StrictRules/FileRulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
class FileRulesTest extends CIUnitTestCase
2929
{
3030
protected Validation $validation;
31+
32+
/**
33+
* @var array<string, array<int|string, array<string, string>|string>>
34+
*/
3135
protected array $config = [
3236
'ruleSets' => [
3337
Rules::class,

tests/system/Validation/StrictRules/FormatRulesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
#[Group('Others')]
2424
final class FormatRulesTest extends TraditionalFormatRulesTest
2525
{
26+
/**
27+
* @var array<string, array<int|string, array<string, string>|string>>
28+
*/
2629
protected array $config = [
2730
'ruleSets' => [
2831
Rules::class,

tests/system/Validation/StrictRules/RulesTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
final class RulesTest extends TraditionalRulesTest
2727
{
2828
protected Validation $validation;
29+
30+
/**
31+
* @var array<string, array<int|string, array<string, string>|string>>
32+
*/
2933
protected array $config = [
3034
'ruleSets' => [
3135
Rules::class,

tests/system/Validation/StrictRules/ValidationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
#[Group('Others')]
2424
final class ValidationTest extends TraditionalValidationTest
2525
{
26+
/**
27+
* @var array<string, array<int|string, array<string, array<string, string>|string>|string>|string>
28+
*/
2629
protected static array $config = [
2730
'ruleSets' => [
2831
Rules::class,

tests/system/Validation/ValidationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
class ValidationTest extends CIUnitTestCase
3737
{
3838
protected Validation $validation;
39+
40+
/**
41+
* @var array<string, array<int|string, array<string, array<string, string>|string>|string>|string>
42+
*/
3943
protected static array $config = [
4044
'ruleSets' => [
4145
Rules::class,

0 commit comments

Comments
 (0)