Bug 305778

Summary: PHP: Fully support use statements and aliases
Product: [Applications] kdevelop Reporter: Andrew Udvare <audvare>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: pprkut
Priority: NOR    
Version: 4.3.1   
Target Milestone: 4.3.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrew Udvare 2012-08-25 20:01:52 UTC
Currently, use statements are supported in that the syntax is not ignored or counted as invalid, but the full name of the class is not used when typing within the code. This means auto-completion never works.

Also, aliases are very much not supported. Again the syntax is, but using the alias results in the string being referenced as a class name being unknown (its full original class name is not considered from the use statement above).

Reproducible: Always

Steps to Reproduce:
1. Code:
// B.php
namespace A;

class B {
  public function C() {}
}

// C.php
use A\B;

$b = new B(); // unknown type
2. `$b->(ctrl+space)` only displays Kate's autocomplete options
Actual Results:  
Unknown types, no auto-completion.

Expected Results:  
Should detect the use statement (with or without alias) and use the full class name to determine auto-completions.
Comment 1 Heinz Wiesinger 2014-01-19 10:52:51 UTC

*** This bug has been marked as a duplicate of bug 244040 ***