-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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] typo in method name _getCharg[e]ableOptionPrice #15276
[fix] typo in method name _getCharg[e]ableOptionPrice #15276
Conversation
Hi @miguelbalparda, thank you for the review. |
* | ||
* @param float $price Price of option | ||
* @param boolean $isPercent Price type - percent or fixed | ||
* @param float $basePrice For percent price type | ||
* @return float | ||
*/ | ||
protected function _getChargableOptionPrice($price, $isPercent, $basePrice) | ||
protected function _getChargeableOptionPrice($price, $isPercent, $basePrice) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protected methods cannot be removed, please check https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development/index.html#php:
Public and protected method removal
Mark the method with the@deprecated
tag instead of removing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protected methods cannot be removed, please check https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development/index.html
Hi @mhauri. Thank you for your contribution. Please, consider porting this solution across release lines. |
Description
Method name
\Magento\Catalog\Model\Product\Option\Type::_getChargableOptionPrice
contained typo.Renamed it to
_getChargeableOptionPrice
.Contribution checklist