Do you have any unused variable, please?

Today we would like to introduce you a very useful feature, which is well known by most of you. Do you know experimental hint which tried to check your unused variables? I hope you do. But almost noone used it. And why? Because it was slow, unstable and, unfortunately, it didn't work :/

But now we threw it away and we made a pretty new implementation. It is fast, stable and, fortunately, it works ;)

You can enable/disable that in Tools -> Options -> Editor -> Hints -> PHP -> Stable -> Variable does not seem to be used in its scope.

So that's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (product php, component Editor). Thanks.

Comments:

I've filed a bug report:
http://netbeans.org/bugzilla/show_bug.cgi?id=202457

Posted by Maghiel Dijksman on September 21, 2011 at 05:44 PM CEST #

And I have answered you ;)

Posted by Ondrej Brejla on September 22, 2011 at 04:49 AM CEST #

And I've answered to you again :p

Posted by Maghiel Dijksman on September 22, 2011 at 03:48 PM CEST #

But is only for the development version, isn't it?

Posted by Jose Duenas on September 25, 2011 at 07:02 PM CEST #

This is great! It would also be really nice to make the "variable might not have been initialized" and make it really good so it can be taken out of the experimental and put into the stable good stuff.

Posted by guest on October 07, 2011 at 06:12 PM CEST #

Thanks. This hint is in stable stuff in the development version right now. And "initialization" hint is in my todo list, so I hope it will be implemented soon ;)

Posted by Ondrej Brejla on October 10, 2011 at 05:05 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today