Skip to content
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

fix Magento2.Legacy.EscapeMethodsOnBlockClass #602

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Morgy93
Copy link

@Morgy93 Morgy93 commented Sep 2, 2024

Using escape methods on $block is deprecated via Magento2.Legacy.EscapeMethodsOnBlockClass. Ref.: https://github.com/magento/magento-coding-standard/blob/v33/Magento2/Sniffs/Legacy/EscapeMethodsOnBlockClassSniff.php

This PR fixes it.

@magefan
Copy link
Owner

magefan commented Sep 16, 2024

@Morgy93 , thank you for your PR. Unfortunatly we cannot approve it now, as we still keep compatibility with Magento 2.3.0, and $escaper is available only in Magento >= 2.4.0.

Once we drop Magento 2.3.x compatibility we will update the templates and add $escaper

@Morgy93
Copy link
Author

Morgy93 commented Sep 16, 2024

I am wondering why you keep 2.3.0 support if only 2.4.4+ are supported officially. (https://experienceleague.adobe.com/en/docs/commerce-operations/release/planning/lifecycle-policy)
It sounds like life support for something long dead. 😅 2.3.0 support ended over two years ago.

I would wish you focused more on motivating people to update, rather than rewarding them for using outdated and security-critical software. 😊

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

Successfully merging this pull request may close these issues.

2 participants