-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Removed unnecessary protected member variables. #14041
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
Removed unnecessary protected member variables. #14041
Conversation
Removed unnecessary protected member variables of Image class. The variable `$imageHelper`, `$product` and `$attributes` are not in use. Above three variable doesn't contain any values. Also verified it on category, product and cart page.
|
Hi @yogeshks, thanks for your contribution! Unfortunately, removing protected properties is not allowed by the backwards incompatible development guide. I see that you are saying the properties aren't used - I can check on that. We have to be careful though to not break any behaviour in third party code if this should go into What you could do according to the guide is to tag the properties as |
Restored protected properties of Image class and marked them as `@deprecated`.
|
Hi @mzeis Thank you so much for your guidance, I've restored protected properties and marked them as @deprecated as per your suggestion. |
|
@mzeis what's the point in such comments? They should be added or properties should be removed all at once with some automated tooling. |
|
Hi @yogeshks, I updated your PR:
You don't need to create a PR for |
|
Hi @mzeis, thank you for the review. |
|
Hi @yogeshks, thanks for your PR! It has been merged into |
Hello,
Description
Removed unnecessary protected member variables of Image class.
The variable
$imageHelper,$productand$attributesare not in use.Above three variable doesn't contain any values. Also verified it on category, product and cart page.
Fixed Issues (if relevant)
N/A
Manual testing scenarios
N/A
Contribution checklist