Skip to content

PHP 8.2 | Squiz/VariableComment: bug fix - allow for DNF typed properties #940

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
merged 1 commit into from
Apr 9, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 6, 2025

Description

If a property was typed with a DNF type, the Squiz.Commenting.VariableComment would not be able to find the docblock (providing there is one).

Fixed now.

Includes tests.

Suggested changelog entry

Squiz.Commenting.VariableComment : false positive for missing docblock for properties using DNF types

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

…ties

If a property was typed with a DNF type, the `Squiz.Commenting.VariableComment` would not be able to find the docblock (providing there is one).

Fixed now.

Includes tests.
@jrfnl jrfnl added this to the 3.12.2 milestone Apr 6, 2025
@jrfnl jrfnl merged commit 50f03b3 into master Apr 9, 2025
234 of 253 checks passed
@jrfnl jrfnl deleted the feature/squiz-variablecomment-allow-for-dnf-types branch April 9, 2025 04:45
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