Skip to content

Commit 38be46c

Browse files
committed
Specifying type of const in StringRule
1 parent aacb5a0 commit 38be46c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Validation/Rules/StringRule.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Nuxtifyts\PhpDto\Exceptions\ValidationRuleException;
66
use Nuxtifyts\PhpDto\Support\Arr;
77
use Override;
8-
use Nuxtifyts\PhpDto\Validation\Rules\RegexRule;
98

109
class StringRule extends RegexRule
1110
{
@@ -15,7 +14,7 @@ class StringRule extends RegexRule
1514
protected const string TYPE_ALPHA = 'alpha';
1615

1716
/** @var list<string> */
18-
protected const TYPES = [
17+
protected const array TYPES = [
1918
self::TYPE_STRING,
2019
self::TYPE_ALPHA,
2120
];

0 commit comments

Comments
 (0)