-
Notifications
You must be signed in to change notification settings - Fork 160
Strange behavior of Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation check #303
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 @hostep. Thank you for your report. Please, add a comment to assign the issue:
|
It looks like a separate check should be introduces for single-line annotations within the Sniff |
Magento version: CE 2.4.5
fails with Also, why classes constructors requires docblocks? We were so happy about new php 8.1 feature with shorten class signature. Like it will decrease the amount of boilerplate code... And then Magento requires us to duplicate information in docblocks ("to duplicate" - because mostly all the methods are covered with strict types) and to write unnecessary descriptions for methods with obvious names and behaviors... :( |
Woohoow, finally! |
Preconditions
magento/magento-coding-standard
version 12Steps to reproduce
vendor/bin/phpcs -s --standard=Magento2 --ignore=./vendor/ .
Expected result
Missing short description
andThere must be exactly one blank line before tags
warnings for the$output
parameterActual result
Each time I add a new method, 2 more warnings for
Missing short description
andThere must be exactly one blank line before tags
appear that claim to have something to do with the$output
variable. Which is really confusing.The text was updated successfully, but these errors were encountered: