This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 230360 - Complete use statement instead of FQN
Summary: Complete use statement instead of FQN
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
: 243459 (view as bug list)
Depends on:
Reported: 2013-05-28 08:16 UTC by Vladimir Riha
Modified: 2014-04-02 06:10 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-05-28 08:16:57 UTC
Let's say I have 2 classes:

file Foo.php:

namespace A\B;

class Foo{
public static function print(){}

file Bar.php:

namespace A\C;

class Bar{

function __construct() {
 F // confirm Foo from cc here

now if in constructor of Bar I confirmed Foo from cc, then FQN is completed


and then I "have to" fix use statements to have

use \A\B\Foo;

Would it make sense/be possible to in this case complete use statement and relative class name instead of FQN? Since the FQN is now being completed, I guess you de facto already know which use statement could be used
Comment 1 Ondrej Brejla 2013-05-28 08:18:58 UTC
I know about this behavior...but unfortunately it's not so easy to implement as it looks like :(
Comment 2 Vladimir Riha 2014-04-02 06:10:11 UTC
*** Bug 243459 has been marked as a duplicate of this bug. ***