Re: Best way of iterating over object member fields?

From: Date: Fri, 05 Sep 2014 08:23:51 +0000
Subject: Re: Best way of iterating over object member fields?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-323830@lists.php.net to get a copy of this message
On 04/09/14 19:20, David Harkness wrote:
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 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

« previous php.general (#323830) next »