Identifying PHP unused variables (in Emacs)?
- by Roberto Aloi
Is it somehow possible to identify unused variables in a PHP file in Emacs?
With other languages, this is possible by using tools such as flymake.
I've already enabled Flymake to show syntax errors for my PHP files on the fly, but still it's frustrating that PHP logic errors are sometimes due to situations like:
<?php
$foo = whatever();
$bar = something($fo);
...
Note the typo on $foo that will contribute to the developer's headache and to his exorbitant use of coffee.