We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aacb5a0 commit 38be46cCopy full SHA for 38be46c
src/Validation/Rules/StringRule.php
@@ -5,7 +5,6 @@
5
use Nuxtifyts\PhpDto\Exceptions\ValidationRuleException;
6
use Nuxtifyts\PhpDto\Support\Arr;
7
use Override;
8
-use Nuxtifyts\PhpDto\Validation\Rules\RegexRule;
9
10
class StringRule extends RegexRule
11
{
@@ -15,7 +14,7 @@ class StringRule extends RegexRule
15
14
protected const string TYPE_ALPHA = 'alpha';
16
17
/** @var list<string> */
18
- protected const TYPES = [
+ protected const array TYPES = [
19
self::TYPE_STRING,
20
self::TYPE_ALPHA,
21
];
0 commit comments