2

I use the wonderful Eclipse PDT for PHP development.

I often encounter irritating bugs due to me misspelling variable names.

Is there a way to highlight variables that have not been initialized? As they will almost certainly be due to a spelling mistake.

Thanks for any help.

1
  • Just make sure you write small functions/methods. Commented Feb 13, 2009 at 19:58

3 Answers 3

3

No. Due to the dynamic, sometimes hackish nature of PHP, it would overall be a pain to have variables that the IDE thinks is undeclared be underlined. Since many functions can declare variables on their own (such as extract), this would be a major hindrance.

Sign up to request clarification or add additional context in comments.

Comments

2

zend studio has this feature so i'm not sure if we'll see it in pdt, it will also highlight unreachable code, etc.

Comments

1

JEdit with PHPParser plugin had that, IIRC. It's been long since I tried it, though, I might be wrong.

Comments