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.

Bug 190168 - "Variable does not seem to be used in its scope" hint is not correct
Summary: "Variable does not seem to be used in its scope" hint is not correct
Status: RESOLVED DUPLICATE of bug 170541
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 02:37 UTC by iliavlad
Modified: 2010-09-07 17:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iliavlad 2010-09-06 02:37:44 UTC
code
---
<?php
class A
{
    public function b()
    {
        $a = array();
        foreach ($a as $key) {
            $this->$key = 1;
        }
    }
}
---
There is hint "Variable does not seem to be used in its scope" on var $key in IDE.

It is not correct because of $key is used in $this->$key.
Comment 1 dharkness 2010-09-07 17:47:18 UTC

*** This bug has been marked as a duplicate of bug 170541 ***