Skip to content

PHP 8.4 | Squiz/VariableComment: add support for final properties #949

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

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 9, 2025

Description

If a property uses the final modifier keyword, the property docblock (providing there is one) would never be found, leading to false positives.

Fixed now.

Includes tests.

Suggested changelog entry

Added support for PHP 8.4 final properties to the following sniffs:

  • Squiz.Commenting.VariableComment

Related issues/external references

Related to #734, follow up to #834 and #907

If a property uses the `final` modifier keyword, the property docblock (providing there is one) would never be found, leading to false positives.

Fixed now.

Includes tests.
@jrfnl jrfnl merged commit a3e883d into master Apr 13, 2025
63 checks passed
@jrfnl jrfnl deleted the feature/squiz-variablecomment-support-php84-final-props branch April 13, 2025 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants