magento / magento-coding-standard

Magento Coding Standard
Open Software License 3.0
349 stars 153 forks source link

Check @deprecated format only if file has comment #400

Closed mattijv closed 2 years ago

mattijv commented 2 years ago

The MethodAnnotationStructureSniff throws an error if the file does not have a comment ($commentStartPtr is false). This commit moves the @deprecated format check after we check that the file has a comment.

This fixes #399.

sivaschenko commented 2 years ago

@magento import pr to magento-commerce/magento-coding-standard

sivaschenko commented 2 years ago

Thanks for the fix @mattijv !

m2-github-services commented 2 years ago

@sivaschenko the Pull Request is successfully imported.