How to get Eclipse to tell me if PHP variable is used or not [message #61491] |
Thu, 22 November 2007 14:32 |
Eclipse User |
|
|
|
Originally posted by: edward.tanguay.meteo-graphics.de
I used Eclipse in a PHP project once where Eclipse would underline
variables that were:
- defined but not used
- used by not defined
This was a wonderful help especially in PHP where a typo such as this:
$numberOfReports = 10;
..
..
..
echo $NumberOfReports;
will just show blank and not give you an error. I believe it even created
a "warning" in the Errors View which was nice.
Does anyone know how to configure Eclipse to have this "variable scope
integrity" feature which is so helpful in catching little typos in
variables like this?
Thanks,
Edward Tanguay
http://www.tanguay.info/web
|
|
|
|
Re: How to get Eclipse to tell me if PHP variable is used or not [message #61545 is a reply to message #61514] |
Fri, 23 November 2007 08:41 |
Eclipse User |
|
|
|
Originally posted by: edward.tanguay.meteo-graphics.de
Sorry for posting twice, but after posting in the newcomers list I was
told to post PHP/PDT issues here so I did. Know I know. :-)
I vaguely recall that this variable scope feature was in a project called
PHPeclipse, I think. It would be nice if this feature was in the PDT
Eclipse as well. Or does anyone know of any "validator tools" etc. with
which I can regularly check my code for unused and undefined variables?
Thanks,
--
Edward Tanguay
http://www.tanguay.info/web
|
|
|
|
Powered by
FUDForum. Page generated in 0.03253 seconds