I have seen the below question and was wondering if there is something like it for Eclipse.
Also, how can I make sure that this kind of errors gets thrown into my trigger error function, so that I can write it to a log.
I have seen the below question and was wondering if there is something like it for Eclipse.
Also, how can I make sure that this kind of errors gets thrown into my trigger error function, so that I can write it to a log.
Not sure it can report unused variables, but PHP_CodeSniffer is nice when it comes to detecting problems in PHP source code.
Still, it's a command-line tool, and it's not integrated in Eclipse PDT...
The post you are linking to is talking about the second kind, and not the first one.
error_reporting
, and configure it so it report E_NOTICE
display_errors
log_errors
But, here too, this is not integrated in Eclipse -- and I've never seen a tool that would parse the PHP error log, and push the notices to Eclipse...
The NetBeans IDE (I switched from Eclipse PDT last month) identifies and shows warning about unused and uninitialized methods, variables, etc.
Install PDT Extensions.
From the Eclipse (PDT) main menu, select Help → Install New Software.
Then enter the above URL in the 'Work with' edit box. Click Add. Check the 'PDT Extensions' checkbox. Click Next...