lint/operators/no-and-or-keywords
In the code-quality set. Unsafe fix: it can change behaviour. Intent: suspicious.
What it does
Use && and || logical operators instead of and and or.
Configuration
[lint.rules]
"operators/no-and-or-keywords" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
logical_operators(php-cs-fixer, risky)LogicalToBoolean(rector)
Merged rules
These old IDs are now this rule. A config that still names one stops with an error. See merged rules.
lint/operators/prefer-boolean-and-or