-
Notifications
You must be signed in to change notification settings - Fork 132
MFTF-33780: Changed loose comparisons into strict #871
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
MFTF-33780: Changed loose comparisons into strict #871
Conversation
Hello, @jilu1! Please, proceed with the code review. Thanks, |
@bohdan-harniuk |
@magento import pull request to https://github.com/magento-commerce/magento2-functional-testing-framework |
@jilu1 Thanks, |
@jilu1 the pull request successfully imported. |
@bohdan-harniuk |
Hello, @jilu1! You just need to rerun MFTF tests. There are few common issues with them. We see them quite often. Thanks, Bohdan |
Hello @jilu1 |
@andrewbess @bohdan-harniuk |
Hello, @jilu1! For now free API of currency converter is up: Could you please rerun builds from your side? You can additionally recheck if it is UP by this link: server-status Thanks, Bohdan |
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.
@bohdan-harniuk
I checked the failing tests seem to be flaky. We will merge this PR.
Description
In this PR loose comparison operators were changed to the strict comparison operators.
These changes apply to the next comparison operators:
Reason of those changes:
With the PHP RFC updates often changes rules of loose comparison operators interpretation. So, for each MFTF codebase update to the new PHP version, if there is any update in the loose comparison operators interpretation, we must check every line of code where such operators are used to clarify if those changes applies to our codebase. A lot easier to replace loose operators with the strict ones to eliminate such problems in the future.
This PR doesn’t cover operations that perform non-strict comparisons with the next parts:
Those cases would be considered only if any build fails on them.
I've run all Magento 2 MFTF tests for the CE, EE, B2B repositories on the current branch:


All tests passed successfully:

magento/magento2#33866
Fixed Issues (if relevant)
Contribution checklist