Skip to content

Commit

Permalink
Allow enum value to be backed by an empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Helmich <[email protected]>
  • Loading branch information
martin-helmich committed Sep 6, 2023
1 parent 31c6cc2 commit 16d1a08
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 16d1a08

Please sign in to comment.