-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 8.1] Add Enums #758
[PHP 8.1] Add Enums #758
Conversation
I know, thanks :) I've seen more people forgot to switch that than to make it useful. |
8757f05
to
4f40549
Compare
@nikic Hi, I made first draft, but got stuck on unclear error probably related to Could you review the PR so far? Thank you |
0af1696
to
cd6c27c
Compare
Hi, I made first |
@nikic Hi, since Enums are now accepted and merged in PHP core, could you give me feedback on this? |
Can you please rebase over a8223f2? The enum keyword needs slightly special handling. |
cd6c27c
to
9d8cfae
Compare
Thanks! I've rebased and grammar works perfectly 👍 I'm adding more tests case and there is weird one, where php test/updateTests.php Any how to fix it? Otherwise it's ready to review |
@TomasVotruba Possibly this is because you added enums to the PHP 5 grammar as well, where |
9bb9e0a
to
3d0f68d
Compare
I've removed enum from php5.y grammer and it looks good 👍 |
5cf45d2
to
ccf27f1
Compare
Ready to review ✔️ |
I've processed your comments and CI is passing with both format preserving and normal tests 👍 |
Thanks 🥳 |
Closes #757