We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey,
I continue to have this issue (#2218), made sure I am on latest master (disabled my wip as well).
I think it is because of the interface as I tried this little test case:
This has issues:
<?php interface test { public function foo(): string; } enum Test: string implements test { public function foo() { $this->cases(); <--- Undefined error } } Test::from('bar')->foo(); <--- Method "foo" does not exist
All fine with:
enum Test: string { public function foo() { $this->cases(); } } Test::from('bar')->foo();
The text was updated successfully, but these errors were encountered:
this looks like a parser bug - it incorrectly parses the "base clause" as the "members" node:
also note that it parses the "method" as a "function" instead of a "MethodDecalaration":
compare to a class:
will need to fix in our fork then push an upstream fix
Sorry, something went wrong.
Well, it's mostly fixed in 2220 although it ignores the interface type.
Successfully merging a pull request may close this issue.
Hey,
I continue to have this issue (#2218), made sure I am on latest master (disabled my wip as well).
I think it is because of the interface as I tried this little test case:
This has issues:
All fine with:
The text was updated successfully, but these errors were encountered: