Bug 305778 - PHP: Fully support use statements and aliases
Summary: PHP: Fully support use statements and aliases
Status: RESOLVED DUPLICATE of bug 244040
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: 4.3.1
Platform: unspecified Linux
: NOR normal
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-25 20:01 UTC by Andrew Udvare
Modified: 2014-01-19 10:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***