Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6309

Source menu>InsertCode>Override & implement method: return type missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.6
    • None
    • php - Code, php - Editor
    • None

    Description

      Let's imagine the following interface:

      interface FooInterface {
           /**
           * Doc
           * @param string $param
           * @return array<int, \Some\Object>
           */      
           public function bar(string $param):array;
      }
      

      In an implementation class, if you use Source Menu>InsertCode>Override & implement method, the inserted code is not complete:

      • Documentation is missing
      • Return type (array in the example) is also missing

       

      Attachments

        Activity

          People

            junichi11 Junichi Yamamoto
            FFT Jayce
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: