lint/operators/no-loose-equality
In the code-quality set. Report only. Intent: suspicious. Upstream gates: strictRules.disallowedLooseComparison.
What it does
Disallows the loose comparison operators == and !=; use === and !==.
Configuration
[lint.rules]
"operators/no-loose-equality" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DisallowedLooseComparisonRule(phpstan-classes)equal.notAllowed(phpstan-strict-rules)notEqual.notAllowed(phpstan-strict-rules)