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 258114 - More clever parameter name, when creating function from hint dialog
Summary: More clever parameter name, when creating function from hint dialog
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 13:53 UTC by fiala.premysl
Modified: 2016-02-23 13:54 UTC (History)
0 users

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 fiala.premysl 2016-02-23 13:53:53 UTC
This little enhancement would save much time.

Scenario:
- both functions do not exist

......
 $obj->someNewFunction($var->id);
 $obj->anotherNewFunction($id);
......

Trigger hint dialog and select "Create function"

Netbeans will create function(s):

 someNewFunction($param0)
 {
 }

 anotherNewFunction($id)
 {
 }

I thinkit would be better, if Netbeans instead of "pamar0" named the parameter after the variable:

 someNewFunction($varId)
 {
 }