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

add support of php attributes #91

Merged
merged 4 commits into from
May 24, 2024

Conversation

eric-therond
Copy link
Contributor

fix #90

@eric-therond
Copy link
Contributor Author

@nikic or @ircmaxell do you have time to review it?

I also plan to create a separate PR for the support of arrow function and attributes on arrow function.

@ircmaxell
Copy link
Owner

I know it's a bit late, but one thing that jumped out to me is using Expr as a base for the attribute. Expressions have a return value. It also isn't a statement since it can't appear in a control-flow. I would do something similar to trait-use in this context, so adding a new Op type for the attribute.

@eric-therond
Copy link
Contributor Author

no problem for the delay, better late than never ;)
thank you for your suggestion. I did changes to the PR.
Let me know if it's what's you had in mind.

@ircmaxell
Copy link
Owner

Looks great, thanks for the contribution!

@ircmaxell ircmaxell merged commit 4fd3db9 into ircmaxell:master May 24, 2024
4 checks passed
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.

support of php attributes
2 participants