This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Example: $where /* warning here */ = $variable ? "orWhere" : "andWhere"; if( something ) $query->$where( somethingelse ); All updates installed yesterday
I'm not sure if I can reproduce exactly your problem. If you mean, that there is a warning yellow line under the $where variable, so that's bad. But what I only see is yellow line under the $variable and $query. And that's right. Neither $variable nor $query is initialized. If you write: $variable = null; before that snippet, there is no yellow line under the $variable. So I think that it's feature, not bug or defect.
Yes, I meant $where. '... not been initialized' is an unintended imperfection of the snippet. This is easily reproducable by copy/pasting the snippet as I belive it is (in case of $where) independent code. The main thing is that $where in the ...->$where(... is not detected as the $where's use in the scope. Iirc there are few other situations with imperfect 'usage in scope' detection, but I can't remember off the top of my head right now. Of course - it's just P4 thing
Batch reassigning.
*** This bug has been marked as a duplicate of bug 170541 ***