-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Backward-incompatible change between 2.2.7 and 2.2.8 #22238
Comments
Hi @yutv. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @yutv do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@engcom-backlog-nazar Thank you for verifying the issue. Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:
Once all required information is added, please add label |
Hi @VitaliyBoyko. Thank you for working on this issue.
|
✅ Confirmed by @rogyar Issue Available: @rogyar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @yutv. Thank you for your report. The fix will be available with the upcoming 2.2.9 release. |
This backward-incompatibility reproduced again in between 2.3.1 and 2.3.2 but can not found on 2.3-dev branch, Is there anyone know when this resolved from 2.3? |
Preconditions (*)
Steps to reproduce (*)
Create a custom module in Magento 2.2.7 with the following class:
app/code/Vendor/Module/Block/Product/View/Options/Type/Swatch.php
Check that this class doesn't cause PHP Fatal Error in Magento 2.2.7
Upgrade to Magento 2.2.8
Expected result (*)
Actual result (*)
Fatal error in custom module:
Backward-incompatible change
The issue caused by backward-incompatible commit between Magento 2.2.7 and 2.2.8 made by @rleshchenko.
The declaration of the getValuesHtml method was changed from:
to:
As result any class which extends this method in old declaration becomes incompatible with the new one and throws fatal error.
Note: Issue is still exists in the 2.2-develop branch: https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/Block/Product/View/Options/Type/Select.php#L62
The text was updated successfully, but these errors were encountered: