File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
use function Psl \Type \non_empty_string ;
12
12
use function Psl \Type \optional ;
13
13
use function Psl \Type \shape ;
14
+ use function Psl \Type \string ;
14
15
use function Psl \Type \vec ;
15
16
16
17
final class TypeMeta
@@ -31,7 +32,7 @@ final class TypeMeta
31
32
private $ docs ;
32
33
33
34
/**
34
- * @var list<non-empty- string>|null
35
+ * @var list<string>|null
35
36
*/
36
37
private $ enums ;
37
38
@@ -171,7 +172,7 @@ public function withDocs(?string $docs): self
171
172
}
172
173
173
174
/**
174
- * @return Option<list<non-empty- string>>
175
+ * @return Option<list<string>>
175
176
*/
176
177
public function enums (): Option
177
178
{
@@ -184,7 +185,7 @@ public function enums(): Option
184
185
public function withEnums (?array $ enums ): self
185
186
{
186
187
$ new = clone $ this ;
187
- $ new ->enums = optional (vec (non_empty_string ()))->coerce ($ enums );
188
+ $ new ->enums = optional (vec (string ()))->coerce ($ enums );
188
189
189
190
return $ new ;
190
191
}
You can’t perform that action at this time.
0 commit comments