Map method's name as different name for Code Completion
I'm working with ProcessWire (http://processwire.com/) which has hookable methods prepended with three underscores. These methods are called in code without underscores, which confuses IDE for obvious reasons and creates false positives for calling non-existing class methods.
I would like to map all Class::___[method]() as Class::[method] for code completion, code inspection, and other tools/helpers. To be even more clear, I would like to PhpStorm to suggest for Class::___fooBar($param) methods Class::___foobar($param) and Class::foobar($param).
I know I could go around this issue with defining PHPDoc block for classes, but this solution leads me to another issue: when I do CTRL+B to find called method I end up in PHPDoc block, not the method I actually want to find.
Please sign in to leave a comment.
Hello,
Unfortunately there seem to be no existing solution at the moment.
It would be great if you could submit the feature request to our tracking system here: <http://youtrack.jetbrains.com/issues/WI#newissue=yes>.
You will be able to receive the answer directly from our developers while other users will be able to write their opinion of your proposal.
Done: https://youtrack.jetbrains.com/issue/WI-36647