magento / magento-coding-standard

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

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

Closed tuyennn closed 2 years ago

tuyennn commented 2 years ago

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

  1. phpcs: PHP Fatal error: Uncaught Error: Undefined constant "Magento2\Sniffs\Annotation\T_ATTRIBUTE_END"
m2-assistant[bot] commented 2 years ago

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


tuyennn commented 2 years ago

Close due this related to version of squizlabs/php_codesniffer https://github.com/squizlabs/PHP_CodeSniffer/issues/3298