Re: Best way of iterating over object member fields?
| From: | David Harkness | Date: | Thu, 04 Sep 2014 18:20:20 +0000 |
| Subject: | Re: Best way of iterating over object member fields? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323822@lists.php.net to get a copy of this message | ||
On Thu, Sep 4, 2014 at 1:05 AM, Peter Ford <pete@justcroft.com> 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