Skip to content

Support Enums in ValueFormatter.php #236

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

wlkns
Copy link

@wlkns wlkns commented May 14, 2025

This snippet adds support for string backed PHP Enums.

Example:

enum Animal: string {
   case DOG = 'dog';
   case CAT = 'cat';
   case BIRD = 'bird';
}

@wlkns
Copy link
Author

wlkns commented May 20, 2025

Ping @isublimity :) Can we get this merged or would you like any changes?

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.

1 participant