Skip to content

PHP 8.4 | Squiz/VariableComment: add support for abstract properties - #1186

Merged
jrfnl merged 1 commit into
masterfrom
php-8.4/squiz-variablecomment-support-abstract-properties
Aug 15, 2025
Merged

jrfnl merged 1 commit into
masterfrom
php-8.4/squiz-variablecomment-support-abstract-properties

Conversation

@jrfnl

@jrfnl jrfnl commented Aug 12, 2025

Copy link
Copy Markdown
Member

Description

If a property uses the abstract 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 abstract properties to the following sniffs:

  • Squiz.Commenting.VariableComment

Related issues/external references

Related to #734

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

Fixed now.

Includes tests.
@jrfnl jrfnl added this to the 3.13.3 milestone Aug 12, 2025
@jrfnl jrfnl mentioned this pull request Jul 16, 2025
17 of 47 tasks
@jrfnl
jrfnl merged commit e74e6c1 into master Aug 15, 2025
@jrfnl
jrfnl deleted the php-8.4/squiz-variablecomment-support-abstract-properties branch August 15, 2025 16:30
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.

1 participant