Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum can have boolean values #1467

Merged
merged 12 commits into from
Sep 12, 2023
Merged

Enum can have boolean values #1467

merged 12 commits into from
Sep 12, 2023

Conversation

momala454
Copy link
Contributor

No description provided.

@DerManoMann
Copy link
Collaborator

You will need to update the annotation classes too to make the tests pass...

@momala454
Copy link
Contributor Author

thanks done

Copy link
Collaborator

@DerManoMann DerManoMann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more find/replace that it looks good to go.

@@ -27,7 +27,7 @@ class ServerVariable extends AbstractAnnotation
/**
* An enumeration of values to be used if the substitution options are from a limited set.
*
* @var string[]|int[]|float[]|\UnitEnum[]|class-string
* @var string[]|int[]|float[]|\UnitEnum[]|class-string|bool[]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, just a minor thing, but one I'd like to see changed for consistency - could you move the bool[] adjunct to string,int,float, please, so the native types are all together?

Suggested change
* @var string[]|int[]|float[]|\UnitEnum[]|class-string|bool[]
* @var string[]|int[]|float[]|bool[]|\UnitEnum[]|class-string

@DerManoMann DerManoMann merged commit e53c0c7 into zircote:master Sep 12, 2023
20 checks passed
@DerManoMann
Copy link
Collaborator

Thanks @momala454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants