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

Provide access to low-level components #74

Open
codeliner opened this issue Mar 21, 2021 · 0 comments
Open

Provide access to low-level components #74

codeliner opened this issue Mar 21, 2021 · 0 comments

Comments

@codeliner
Copy link
Member

Since PHP 8 Attributes are currently not supported (see #73 ) but PHP Parser can handle them, I tried to find a way to add an attribute to a ClassMethod.

Unfortunately, there is no way to get access to the low-level PHP Parser functionality. For my use case the easiest extension point would be to inject my own method generator, but it is a final class. No way to decorate it or exchange with a custom implementation.

Hence my suggestion to use more interfaces in combination with default implementations so that users of the library can inject custom logic if needed.

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

No branches or pull requests

1 participant