Skip to content

Commit 36cbee2

Browse files
authored
Merge pull request #189 from martin-helmich/bugfix/enum-case-may-be-empty
Allow enum value to be backed by an empty string
2 parents 31c6cc2 + 16d1a08 commit 36cbee2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Generator/EnumGenerator/Cases/CaseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class CaseFactory
2626
* cases: array<non-empty-string, int>,
2727
* }|array{
2828
* type: 'string',
29-
* cases: array<non-empty-string, non-empty-string>,
29+
* cases: array<non-empty-string, string>,
3030
* },
3131
* } $options
3232
* @return BackedCases|PureCases

src/Generator/EnumGenerator/EnumGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function retrieveCases(): string
8080
* name: non-empty-string,
8181
* backedCases: array{
8282
* type: 'int'|'string',
83-
* cases: array<non-empty-string, int|non-empty-string>,
83+
* cases: array<non-empty-string, int|string>,
8484
* },
8585
* } $options
8686
*/

0 commit comments

Comments
 (0)