magento/magento-coding-standard

phpcs: PHP Fatal error: Uncaught Error: Undefined constant "Magento2\Sniffs\Annotation\T_ATTRIBUTE_END"

tuyennn opened this issue · 2 comments

Preconditions

  1. PHPStorm 2022.1.1
  2. magento-coding-standard Latest version or v22

Steps to reproduce

  1. Inspect the code with configured Magento 2 as Coding Standard

Expected result

  1. PHPCS could inspect the code with no error

Actual result

phpcs: PHP Fatal error: Uncaught Error: Undefined constant "Magento2\Sniffs\Annotation\T_ATTRIBUTE_END"

Hi @tuyennn. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


Close due this related to version of squizlabs/php_codesniffer
squizlabs/PHP_CodeSniffer#3298