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.
Summary: | No support for $this, self etc. within a closure | ||
---|---|---|---|
Product: | php | Reporter: | TheTechFan |
Component: | Editor | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Demonstrates the bug |
Description
TheTechFan
2014-09-12 20:07:22 UTC
Created attachment 149182 [details]
Demonstrates the bug
Reproducible. Thanks for reporting. IMHO this is a new feature of PHP (5.4?) where inside anonymous functions, one can use "self" and "$this" whithout defining them in use() part of the anonymous function declaration. That also means that there is no code-completion after $this and self. One more special case - "parent". Should be fixed now, please verify (find usages, code completion). Thanks. http://hg.netbeans.org/web-main/rev/5cb225a15d00 http://hg.netbeans.org/web-main/rev/faa6757992af http://hg.netbeans.org/web-main/rev/1a5cc7cdcd1b Integrated into 'main-silver', will be available in build *201606150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5cb225a15d00 User: Tomas Mysik <tmysik@netbeans.org> Log: #247082 - Calls to a static method within a closure can't be refactored Mark occurrences fixed now. |