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

Code Inspection: Pointless boolean expression inside 'if' condition

Last modified: 16 May 2022

Reports the boolean expressions inside if conditions that contain $expr == true or $expr == false. Such expressions can be simplified to if($expr) and if(!expr).