netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

[PHP] clicking on aliased import should navigate to the source

Open mvorisek opened this issue 1 year ago • 0 comments

Description

<?php

namespace Data\Mysql;

use Data\Query as BaseQuery;
use Data\Query2;

class Query extends BaseQuery {}

class MyQuery2 extends Query2 {}

Use case/motivation

In the example, the imported Query base class needs to be aliased as it collides with the Query class declaration for MySQL.

When the extends Query2 is clicked by mouse, user is navigated to the source class.

However when the extends BaseQuery is clicked, user is navigated to the import which is unwanted, as the cursor position in the current file changes and an additional click is needed to navigate the source.

I would expect the clicking the extends BaseQuery to navigate to the Data\Query source class directly.

Are you willing to submit a pull request?

No

mvorisek avatar Apr 11 '24 13:04 mvorisek