-
Notifications
You must be signed in to change notification settings - Fork 160
Magento2.Commenting.ClassPropertyPHPDocFormatting fails to detect comment for typed class properties #280
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
Comments
Hi @barbazul. Thank you for your report. Please, add a comment to assign the issue:
|
Hi @barbazul, |
Hi @barbazul , |
Upgraded to 12.0 and the issue was fixed. There is a new ERROR in the report though which I will have to look into. might be a violation that was previously not checked
|
Describe the bug
When using typed class properties the "Missing PHP DocBlock for class property." warning is triggered
Code sample
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior
No warning should be raised as the property has a corresponding docblock.
Versions (please complete the following information):
Additional context
If we remove the type definition, the warning dissapears.
The text was updated successfully, but these errors were encountered: