Skip to content

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

Closed
DanielEScherzer opened this issue Sep 25, 2024 · 1 comment
Closed

Prevent abstract in anonymous classes in compiler #16067

DanielEScherzer opened this issue Sep 25, 2024 · 1 comment

Comments

@DanielEScherzer
Copy link
Member

Description

Based on discussion in #15995

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>
@iluuu1994
Copy link
Member

Fixed in 0b94cf6.

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

2 participants