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

Summary: More clever parameter name, when creating function from hint dialog
Product: php Reporter: fiala.premysl
Component: RefactoringAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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)
 {
 }