Skip to content

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
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