Skip to content

Conversation

@sivaschenko
Copy link
Member

Fixes: #315

The following tags have been added to allowed/expected tags between property name and phpdoc:

  • T_NS_SEPARATOR,
  • T_STRING,
  • T_COMMENT

Refactored the sniff implementation for better readability

Do not consider simple comment annotation opening with /* instead of /** as PHPDoc. If property annotation opens with /* instead of /** that will result in static tests failure with message Missing PHP DocBlock for class property.

@sivaschenko
Copy link
Member Author

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

@m2-github-services
Copy link
Contributor

@sivaschenko the Pull Request is successfully imported.

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.

Magento2.Commenting.ClassPropertyPHPDocFormatting throws an error when processing typed class properties

4 participants