Skip to content

fix: convert static::* to self::* for all constant access in final classes#7159

Merged
samsonasik merged 2 commits intorectorphp:mainfrom
calebdw:calebdw/push-ysulolxtwmxq
Aug 21, 2025
Merged

fix: convert static::* to self::* for all constant access in final classes#7159
samsonasik merged 2 commits intorectorphp:mainfrom
calebdw:calebdw/push-ysulolxtwmxq

Conversation

@calebdw
Copy link
Contributor

@calebdw calebdw commented Aug 20, 2025

Hello!

Please see https://3v4l.org/ZIeA1, all constant access should can/should use self:: in final classes---even for inherited constants

Thanks!

@TomasVotruba TomasVotruba self-requested a review August 20, 2025 19:47
@TomasVotruba
Copy link
Member

LGTM 👍 @samsonasik Feel free to merge, once it's good from your side

@samsonasik
Copy link
Member

Ok, let's give it a try, thank you @calebdw

@samsonasik samsonasik merged commit ab29a4a into rectorphp:main Aug 21, 2025
49 checks passed
@calebdw calebdw deleted the calebdw/push-ysulolxtwmxq branch August 21, 2025 01:39
@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants