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

PHPParser: Handle PHP Attributes #3392

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Conversation

AJenbo
Copy link
Collaborator

@AJenbo AJenbo commented Jun 3, 2024

Fixes #3388

This adds very basic parsing of PHP Attributes. Nothing about the content of the attribute is understood or retained, this is just enough to not encounter a parser errors for files that contain non-backwards compatible attributes.

In the long run we will probably need something like PHPDocComment.cpp for parsing the content. Though I'm not sure if that is the right way to go since the format is a lot more formal then PHPDoc.

This adds very basic parsing of PHP Attributes. Nothing about the
content of the attribute is understood or retained, this is just enough
to not encounter a parser errors for files that contain non-backwards
compatible attributes.
@AJenbo AJenbo added the PHP label Jun 3, 2024
@eranif eranif merged commit 65537f5 into eranif:master Jun 3, 2024
3 checks passed
@AJenbo AJenbo deleted the php-attributes branch June 3, 2024 08:13
@AJenbo AJenbo mentioned this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Unable to parse PHP with non-compat attirbutes
2 participants