[New Rule] The use of literal logical operators MUST be avoided #23
Labels
accepted
New rule is accepted
new rule
New feature implementation
Progress: good first issue
Issues is easy to get started with
proposal
New rule proposal
Rule
The use of literal logical operators (
and
,or
) is discouraged.&&
and||
should be used instead.Reason
Operator precedence is different for
and
vs.&&
andor
vs.||
.It may cause unexpected behaviour:
Please use the official documentation for more details.
Implementation
Add
Squiz.Operators.ValidLogicalOperators
to theruleset.xml
.The text was updated successfully, but these errors were encountered: