-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Assign with and, or, replaced by &&, || #20628
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
Assign with and, or, replaced by &&, || #20628
Conversation
Hi @lfluvisotto. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
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.
Review results: fine.
@swnsma , please approve
Hi @lfluvisotto |
f9ae2a9
to
ef1d040
Compare
…prevent confusion.
bb8606d
to
e78576e
Compare
I decided to keep the integrity of the source code on the occurrences with xor (Logical Operator) that returns boolean, if we use ^ (Bitwise Operator) instead of xor it'll return integer . I used the regular expression only (and|or) , except on comments and string literals. The results I got were different of your screenshot, because your results are included string literals. |
Hi @lfluvisotto, thank you for your contribution! |
@sivaschenko @swnsma @novikor guys, please do not merge such changes without a corresponding static test. |
Description (*)
It is recommended to use the &&, || operators, instead of and, or to prevent confusion.
I kept the integrity of the source code on the occurrences with xor that returns boolean , if we use ^ instead of xor it'll return integer.
Fixed Issues (if relevant)
N/A