in reply to No warning when assiging to a variable
It's the same kind of typo error that is being caught with $foo = 2it's not the same.
is same asif ($foo = $bar)
which makes some sense. while$foo = $bar; if ($bar)
is same asif ($foo = 2)
which does not make much sense.$foo = 2 if (2)
|
|---|