Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.0, 10.0
Description
It seems that autocompletion partially broken for PHP project.
In project's properties PHP version 7.2 selected for my example.
Here is screencast (attached also).
Screencast was made with NB v10#890, but I'm getting the same troubles with Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are specified.
Textual description (in comments):
<?php namespace Repo; use Entity\EntityClass; /** * @method EntityClass[] getAll() */ class RepoClass { /** * * @param array $params * @return EntityClass */ public function findOrCreate(array $params): EntityClass { return new EntityClass(); } }
<?php namespace App; class App { public function exec() { $repo = $magick->getRepo(); /* @var $repo \Repo\RepoClass */ $obj = $repo->findOrCreate($params); // for now all goes fine, ctrl+space after `->` shows methods // `getAll()` and `findOrCreate(array $params)` $obj-> // but no autocompletion here :( } }
Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-linux-890-on-20181029)
Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)