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 205058 - Code completion for repeated method names when using __callStatic()
Summary: Code completion for repeated method names when using __callStatic()
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2011-11-13 20:48 UTC by str
Modified: 2011-11-14 11:35 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description str 2011-11-13 20:48:52 UTC
When I write AClass::notExistingMethod() Netbeans should look whether there is a __callStatic() magic method. When there is, Netbeans should guide the user with code completion so that he/she does not have to write "notExistingMethod()" again.
Comment 1 Ondrej Brejla 2011-11-14 09:18:47 UTC
*** Bug 205057 has been marked as a duplicate of this bug. ***
Comment 2 Ondrej Brejla 2011-11-14 09:20:36 UTC
Hacking CC for this cases is not so good idea. The right solution is to use phpDoc @method tag for class.

 * @method null nonExisting() nonExisting() Description
class Foo {


CC will work then.
Comment 3 str 2011-11-14 11:08:21 UTC
obrejla: This won't work if *every* method name is valid and can be handled by __callStatic().
Comment 4 Ondrej Brejla 2011-11-14 11:35:56 UTC
Ok, so keeping as enhancement reminder.