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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
asheem-patro opened this issue Aug 2, 2021 · 6 comments · Fixed by #211
Assignees
Labels
bug Something isn't working Progress: done

Comments

@asheem-patro
Copy link
Contributor

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
@asheem-patro asheem-patro added the bug Something isn't working label Aug 2, 2021
@m2-assistant
Copy link

m2-assistant bot commented Aug 2, 2021

Hi @asheem-patro. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@asheem-patro
Copy link
Contributor Author

@magento I am working on this

@m2-assistant
Copy link

m2-assistant bot commented Aug 2, 2021

Hi @asheem-patro! 👋
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

@asheem-patro
Copy link
Contributor Author

@magento add to contributors team

@m2-assistant
Copy link

m2-assistant bot commented Aug 2, 2021

Hi @asheem-patro! 👋
Thank you for joining. Please accept team invitation 👉 here 👈 and add your comment one more time.

@asheem-patro
Copy link
Contributor Author

@magento I am working on this

asheem-patro added a commit to asheem-patro/magento-coding-standard that referenced this issue Aug 2, 2021
magento-devops-reposync-svc pushed a commit that referenced this issue Aug 5, 2021
…-coding-standard-211

[Imported] #210: Fixed HtmlDirectiveSniff.php from causing the Fatal Error for c…
magento-devops-reposync-svc pushed a commit that referenced this issue Mar 30, 2023
…-magento-coding-standard-377

[Imported] Resolve incorrect violation code in `Magento2.Security.XssTemplate` sniff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Progress: done
Projects
None yet
1 participant