Skip to content

Commit

Permalink
Merge pull request #189 from martin-helmich/bugfix/enum-case-may-be-e…
Browse files Browse the repository at this point in the history
…mpty

Allow enum value to be backed by an empty string
  • Loading branch information
Ocramius authored Sep 6, 2023
2 parents 31c6cc2 + 16d1a08 commit 36cbee2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Generator/EnumGenerator/Cases/CaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class CaseFactory
* cases: array<non-empty-string, int>,
* }|array{
* type: 'string',
* cases: array<non-empty-string, non-empty-string>,
* cases: array<non-empty-string, string>,
* },
* } $options
* @return BackedCases|PureCases
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/EnumGenerator/EnumGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private function retrieveCases(): string
* name: non-empty-string,
* backedCases: array{
* type: 'int'|'string',
* cases: array<non-empty-string, int|non-empty-string>,
* cases: array<non-empty-string, int|string>,
* },
* } $options
*/
Expand Down

0 comments on commit 36cbee2

Please sign in to comment.