zeleznypa opened a new issue, #6247:
URL: https://github.com/apache/netbeans/issues/6247
### Apache NetBeans version
Apache NetBeans 18
### What happened
When I use a return type PHPDoc documentation part, the Netbeans thing that
it is a unknown class that should be "imported"
### How to reproduce
With the following code in the new file
```
<?php
new class extends ArrayObject {
/**
* @return static Provides fluent interface
*/
public function foo(): void
{
}
};
```
try to call a "Source > Fix imports..." function.
It shows the following dialog:

Expected result is the same but without the `Provides` row.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Mac OS X version 10.16 running on x86_64; UTF-8; cs_CZ (nb)
### JDK
14.0.2; Java HotSpot(TM) 64-Bit Server VM 14.0.2+12-46
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
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