phpcs: PHP Fatal error: Uncaught Error: Undefined constant "Magento2\Sniffs\Annotation\T_ATTRIBUTE_END"
tuyennn opened this issue · 2 comments
tuyennn commented
Preconditions
- PHPStorm 2022.1.1
- magento-coding-standard Latest version or v22
Steps to reproduce
- Inspect the code with configured Magento 2 as Coding Standard
Expected result
- PHPCS could inspect the code with no error
Actual result
phpcs: PHP Fatal error: Uncaught Error: Undefined constant "Magento2\Sniffs\Annotation\T_ATTRIBUTE_END"
m2-assistant commented
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
- Join Magento Community Engineering Slack and ask your questions in #github channel.
tuyennn commented
Close due this related to version of squizlabs/php_codesniffer
squizlabs/PHP_CodeSniffer#3298