Open aligent-lturner opened 2 years ago
Failing tests do not appear to be related to this change, but a missing Symfony class:
Error: Class "Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator" not found
@sivaschenko Would it be possible to merge this please?
hi @aligent-lturner, Could you please resolve conflicts?
@ihor-sviziev conflict has been resolved
@magento import PR to magento-commerce/magento-coding-standard repository
@sinhaparul the Pull Request is successfully imported.
See also #476
@sinhaparul @sidolov could you please merge it?
@sidolov this has been approved for almost a year now. Any chance it can be merged soon?
Fixes #404
If a class property has a type, then there should not be a requirement for a DocBlock. A DocBlock can still be added if desired - this change simply removes the warning for a missing comment block when the property has a defined type.
Note - this does not validate that the type is valid, only that it is not specifically invalid in the same way as https://github.com/magento/magento-coding-standard/blob/develop/Magento2/Sniffs/Annotation/MethodArgumentsSniff.php
Additional: This issue was originally raised against the documentation page (https://github.com/AdobeDocs/commerce-php/issues/23), and was suggested to be raised directly here. The documentation would need to be updated to reflect that DocBlocks are only required for properties without a type.