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 205057

Summary: Code completion for __callStatic() magic method
Product: php Reporter: str
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: REOPENED ---    
Severity: normal CC: str
Priority: P4    
Version: 7.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description str 2011-11-13 20:47:32 UTC
When I write AClass::notExistingMethod() Netbeans should look whether there is a __callStatic() magic method with a return type defined in PHPDoc. According to this type, Netbeans then should show code completion.
Comment 1 Ondrej Brejla 2011-11-14 09:18:47 UTC

*** This bug has been marked as a duplicate of bug 205058 ***
Comment 2 str 2011-11-14 11:10:04 UTC
obrejla: This is a different issue. Using a PHPDoc entry works if you know all possible method names. However, if you do not, you have to type a lot more...
Comment 3 str 2011-11-14 11:15:39 UTC
Perhaps a placeholder method name like *() might be a solution?
Comment 4 Ondrej Brejla 2011-11-14 11:35:53 UTC
Ok, so keeping as enhancement reminder.
Comment 5 artur.siupik 2016-02-05 13:22:16 UTC
PhpStorm is using following convention (added *static* keyword):
@method static type function_name() description...
Could NetBeans follow this path?