Inspectopedia
 
2024.3

Logical expression has same operands

Info
New
Last modified: 03 December 2024

Reports the expressions that use the same operands, but should rather use different operands (for example, $var == $var). These include comparison, logical, null-coalescing, subtraction, and division expressions.