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 - When creating fcc via hint, add parameter type
Summary: When creating fcc via hint, add parameter type
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-02 09:17 UTC by fiala.premysl
Modified: 2016-08-02 09:17 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-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