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 267398

Summary: When creating fcc via hint, add parameter type
Product: php Reporter: fiala.premysl
Component: RefactoringAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description fiala.premysl 2016-08-02 09:17:05 UTC
When Netbeans knows about variable type, it shall offer option to create function with it:

Code:
Class Example
{

  protected function one()
  {
     $date = new \DateTime;

     $this->doSome($date); // Cursor here and activate hint dialog
  }

}

Hint dialog:
Create method "doSome($date)" in Class "Example" (Example.php) // NOW
Create method "doSome(\DateTime $date)" in Class "Example" (Example.php) // NEW
...

Note: both options will be available