Closed
Description
Preconditions
- Error while running PHPCS from another directory after the latest updates.
- Fatal error: Uncaught Error: Class 'Magento\Framework\Filter\Template' not found in /root/.composer/vendor/magento/magento-coding-standard/Magento2/Sniffs/Html/HtmlDirectiveSniff.php on line 76
Steps to reproduce
- Take the latest pull from https://github.com/magento/magento-coding-standard
- Run
composer install
- Run PHPCS from the installed path
Expected result
- PHPCS should run as usual to show the PHPCS related erros
Actual result
- Throwing fatal error
Fatal error: Uncaught Error: Class 'Magento\Framework\Filter\Template' not found in /root/.composer/vendor/magento/magento-coding-standard/Magento2/Sniffs/Html/HtmlDirectiveSniff.php on line 76