dezlov opened a new issue, #4382:
URL: https://github.com/apache/netbeans/issues/4382

   ### Apache NetBeans version
   
   Apache NetBeans 14
   
   ### What happened
   
   "Find usages" on a class constructor does not find uses of alias classes.
   
   For example, is we have `use Bar as Foo`, finding uses of `Bar` constructor 
will find `new Bar()` but not `new Foo()`.
   
   ### How to reproduce
   
   ```php
   use Bar as Foo;
   
   class Bar
   {
        public function __construct()
        {
        }
   }
   
   $foo = new Foo();
   $bar = new Bar();
   
   var_dump($foo);
   var_dump($bar);
   ```
   
   Try to find usages of `__construct()`.
   
   The results show only 2 usages found on these lines:
   
   * `public function __construct()`
   * `$bar = new Bar();`
   
   The usage on this line is not shown in the results:
   
   * `$foo = new Foo();`
   
   
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Windows 10 64-bit
   
   ### JDK
   
   OpenJDK 11.0.15 64-bit
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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

Reply via email to