Skip to content

[CodeQuality] Skip @final doc with public class constant on ConvertStaticToSelfRector#7170

Merged
samsonasik merged 3 commits intomainfrom
fix-final-doc-class-constant
Aug 24, 2025
Merged

[CodeQuality] Skip @final doc with public class constant on ConvertStaticToSelfRector#7170
samsonasik merged 3 commits intomainfrom
fix-final-doc-class-constant

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Aug 24, 2025

@calebdw this continue of PR:

Final via @final doc should be skipped on class constant. This PR fix it. Use native ReflectionClassConstant since PHPStan only has isFinal() for its ClassConstantReflection

@samsonasik samsonasik force-pushed the fix-final-doc-class-constant branch from 9025616 to f3c66c1 Compare August 24, 2025 01:38
@calebdw
Copy link
Contributor

calebdw commented Aug 24, 2025

Final by keyword should probably be added to PHPStan

@samsonasik
Copy link
Member Author

Yes :)

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit f78209f into main Aug 24, 2025
49 checks passed
@samsonasik samsonasik deleted the fix-final-doc-class-constant branch August 24, 2025 01:55
@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 25, 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.

2 participants