mvorisek commented on issue #7192:
URL: https://github.com/apache/netbeans/issues/7192#issuecomment-2047081552
@junichi11 here is minimal repro:
```
<?php
declare(strict_types=1);
namespace Atk4\Repro;
trait MyHookTrait {}
trait MyStaticAddToTrait
{
/**
* @return static
*/
public static function addTo()
{
return new static();
}
}
abstract class MyBase
{
use MyStaticAddToTrait;
}
class MyForm extends MyBase
{
use MyHookTrait;
public function foo(): void {}
}
MyForm::addTo()->
```
when you type `f` on the end, I expect public `foo` method to by
autocompleted/hinted. Currently, only the following is however displayed:

And my observation is when `use MyHookTrait;` is commented out/removed, the
above repro is working then.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists