On 04/09/14 19:20, David Harkness wrote:
On Thu, Sep 4, 2014 at 1:05 AM, Peter Ford <pete@xxxxxxxxxxxxx> wrote:
The IDE I'm using (NetBeans) can be tuned to turn various hints on and
off, but the 'unused variable' hint that my code throws up is not
fine-grained enough to handle cases where the unused variable is actually
the most efficient way to do it.
I use NetBeans as well, and it seems like a reasonable request to have it
detect these two cases of acceptable unused variables. I've submitted a
feature request [1] and noticed that they recently altered the hint in the
case of catching and ignoring an exception [2].
Cheers,
David
[1] https://netbeans.org/bugzilla/show_bug.cgi?id=246880
[2] https://netbeans.org/bugzilla/show_bug.cgi?id=246230
Thanks for opening that, David: I hadn't got around to submitting a request yet!
I have contributed a comment regarding the object iteration that was my special
case, and voted for it. Let's see what happens.
Cheers
Pete
--
Peter Ford phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php