-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Prevent abstract
in anonymous classes in compiler
#16067
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
Labels
Comments
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Sep 25, 2024
So that it is clear what changes
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Sep 25, 2024
As an extra benefit, the error message now points to the line of the method rather than just the overall class declaration.
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Sep 25, 2024
As an extra benefit, the error message now points to the line of the method rather than just the overall class declaration.
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Sep 26, 2024
So that it is clear what changes
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Sep 26, 2024
For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different.
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Oct 18, 2024
So that it is clear what changes
DanielEScherzer
added a commit
to DanielEScherzer/php-src
that referenced
this issue
Oct 18, 2024
For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different.
iluuu1994
pushed a commit
to DanielEScherzer/php-src
that referenced
this issue
Oct 23, 2024
So that it is clear what changes
iluuu1994
pushed a commit
to DanielEScherzer/php-src
that referenced
this issue
Oct 23, 2024
For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different.
iluuu1994
added a commit
that referenced
this issue
Oct 23, 2024
…H-16069) For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
Fixed in 0b94cf6. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Based on discussion in #15995
The text was updated successfully, but these errors were encountered: