Skip to content

Fatal error: Uncaught Error: Class 'Magento\Framework\Filter\Template' not found in /root/.composer/vendor/magento/magento-coding-standard/Magento2/Sniffs/Html/HtmlDirectiveSniff.php:76 #210

Closed
@asheem-patro

Description

@asheem-patro

Preconditions

  1. Error while running PHPCS from another directory after the latest updates.
  2. 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

  1. Take the latest pull from https://github.com/magento/magento-coding-standard
  2. Run composer install
  3. Run PHPCS from the installed path

Expected result

  1. PHPCS should run as usual to show the PHPCS related erros

Actual result

  1. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions