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

PHP: use enums available since PHP 8.1 #1123

Open
generalmimon opened this issue Aug 13, 2024 · 0 comments
Open

PHP: use enums available since PHP 8.1 #1123

generalmimon opened this issue Aug 13, 2024 · 0 comments

Comments

@generalmimon
Copy link
Member

generalmimon commented Aug 13, 2024

PHP 8.1 introduced enums to the language - see https://www.php.net/releases/8.1/en.php#enumerations. It would be nice to use them in the generated code. For our use case, backed enumerations seem appropriate.

PHP 8.1 is currently the oldest version that is not yet EOL (see https://endoflife.date/php), so we don't need any command-line option to activate them and can generate them unconditionally.

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

No branches or pull requests

1 participant