Skip to content

Autofix for ThisInTemplate sniff #369

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

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

sivaschenko
Copy link
Member

Covered ThisInTemplateSniff with autofix. Autofix is replacing $this with $block in .phtml files

Autofixes are applied when executing vendor/bin/phpcbf instead of vendor/bin/phpcs (preserving most options/arguments).

Also, corrected helper call check: this test does not replace the original warning, but adds an additional one.

Resolves: https://jira.corp.magento.com/browse/AC-2221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants