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 - Code completion for __callStatic() magic method
Summary: Code completion for __callStatic() magic method
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P4 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 20:47 UTC by str
Modified: 2016-02-05 13:22 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?