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

[Php83] add type to final class constant #5662

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

philbates35
Copy link
Contributor

@philbates35 philbates35 commented Feb 23, 2024

Since PHP8.1 it has been possible to mark a class constant as final. A final public const FOO should be treated the same as a public const FOO within a final class and the type should be added, which isn't currently the case.

@philbates35 philbates35 force-pushed the add-type-const-final branch 2 times, most recently from b2adf25 to 78a7443 Compare February 23, 2024 20:44
@philbates35 philbates35 marked this pull request as ready for review February 23, 2024 20:46
Since PHP8.1 it has been possible to mark a class constant as final.
A "final public const FOO" should be treated the same as
a "public const FOO" within a "final class" and the type should be
added, which isn't currently the case.
@samsonasik samsonasik merged commit b6f5a03 into rectorphp:main Feb 24, 2024
39 checks passed
@samsonasik
Copy link
Member

Thank you @philbates35

@philbates35 philbates35 deleted the add-type-const-final branch February 24, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants