lint/operators/no-loose-equality
In the lint-essential preset and every stricter one. Report only. Intent: suspicious. Upstream setting: 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)