-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fails to parse classes with typed constants #1133
Comments
At a glance, this conditional needs to be updated to support type hint tokens proceeded by a constant list, then Traits, interfaces, and enums go through this path, so should be supported implicitly. So as long as there's no complications, that should be all that's necessary. @czosel Are y'all currently accepting PRs? It's been a bit since an update, so want to confirm before embarking on any work. Footnotes
|
PR would be great |
The code merged is not working if the class constant does not contain a type. Example
Working on a fix |
PR opened |
Thank you, @genintho! Apologies for not adding more test cases; 100% should have caught this. Let me know if you need any help with the fixes! |
@Kenneth-Sills No worries, I think this PR fixes it. #1147 |
It looks like files that have typed constants are not parseable by the latest version (3.1.5).
Input file:
Error:
The text was updated successfully, but these errors were encountered: