-
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
Use version_compare to compare version strings correctly #18173
Use version_compare to compare version strings correctly #18173
Conversation
|
Hi @schmengler. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @schmengler, |
Hi @schmengler, we need the fix to be delivered also to 2.2-develop branch so please don't forget to port this PR to 2.2-develop; you can do it easily using the Porting Tool, https://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html#porting-tool |
Hi @slavvka, thank you for the review. |
Hi @schmengler. Thank you for your contribution. |
Description
Version numbers were compared with regular alphanumeric string comparison
<
, which results in1.10 < 1.9
. Instead,version_compare
should be usedManual testing scenarios
Contribution checklist