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

PassedParameters: allow for parsing declare statements #378

Open
jrfnl opened this issue Oct 18, 2022 · 0 comments
Open

PassedParameters: allow for parsing declare statements #378

jrfnl opened this issue Oct 18, 2022 · 0 comments

Comments

@jrfnl
Copy link
Member

jrfnl commented Oct 18, 2022

From #339 (comment):

The only thing from the above thread which I think might be interesting for PHPCSUtils could be to offer a function to parse declare statements into the individual directives, returning an array of arrays with directive, directive_token, value, value_token (or something along those lines).

This could help standards which examine declare statements to handle multi-directive statements correctly.

Then again, it may be better/more straight-forward to add T_DECLARE to the list of tokens parsable by the PassedParameters class (and ensure that it is supported correctly) ?

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