PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Duplicate operand in comparison

Last modified: 16 May 2022

Reports duplicate operands in binary expressions (+, -, *, /, &&, ||, and .) that are in turn used inside comparison expressions. Such operands do not affect the comparison result and can be safely removed.