title: Netbeans 8.2 PHP autocomplete for objects stored in variables inherited from parent class does not work
body: <p>Good day!</p>
  
  <p>I have question about code auto completion in Netbeans PHP 8.2 X64, running on Windows 10. I have a class which is to be extended:</p>
  
  <pre><code>class Controller {
  
      protected $obj;
  
      public function __construct() {
          /* @var obj DataValidator */
          $this-&gt;obj = DataValidator::instance();
      }
  
  }
  </code></pre>
  
  <p>If I extend the class in the same file, autocomplete works for $this->obj.</p>
  
  <pre><code>class BazController extends Controller{
      public function __construct() {
          parent::__construct();
      }
  
      public function doSomething(){
          $this-&gt;obj-&gt;doSomething() //autocomplete works!
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uqoHp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uqoHp.jpg" alt="Screenshot - its working!"></a></p>
  
  <p>If I create a new file, it does not work. Netbeans knows the $this->obj, but does not show not the methods $this->obj.</p>
  
  <pre><code>class BarController extends Controller{
  
      public function __construct() {
          parent::__construct();
      }
  
      public function doSomething(){
          /* @var this-&gt;obj DataValidator */
          $this-&gt;obj-&gt; // autocomplete does not work
      }
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cAa4R.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cAa4R.jpg" alt="Not working"></a></p>
  
  <p>I would really like to use autocomplete and it works most of the time, but not when doing this. Perhaps other people solved this already (and I was not able to find it?)</p>
  
  <p>Thank you in advance.</p>