When moving from other languages where a simple '=' equal sign can be used both as assignment and operator, a warning should be logged. Other Boolean operations should be flagged too. Examples:
if ($x = $y) {} -- Always true
for ($i = 1; $i > 99; $i++) - alias to out-file