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

PHPDoc - implicit description inheritance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 11.2
    • 12.1
    • php - Editor
    • None

    Description

      Currently NetBeans IDE supports inheritance of docblocks containing @inheritdoc annotation.

      It would be useful if docblocks are inherited even in case when there is no docblock present.

      Example:

      class Circle {
      
          /**
           * Hides circle
           */
          public function hide() {        
          }
      
          /**
           * Shows circle
           */
          public function show() {
          }
      }
      
      class SpecialCircle extends Circle {
      
          /**
           * {@inheritdoc}
           */
          public function hide() {
              parent::hide();
          }
      
          public function show() {
              parent::show();
          }
      
          public function redraw() {
              $this->hide(); // Text "Hides circle" is shown
              $this->show(); // Text "PHPDoc not found" is shown, expected "Shows circle"
          }
      }
      
      

       

      Attachments

        1. image-2020-05-02-19-28-14-866.png
          34 kB
          Tomáš Procházka
        2. image-2020-04-02-10-21-00-087.png
          50 kB
          Christian

        Activity

          People

            Kacer Tomáš Procházka
            Kacer Tomáš Procházka
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h