Registered Member
|
Hello!
I use KDevelop for Symfony 2 bundle development, and I struggle to make the actual namespace recognition work. I can see all classes in the project just fine, however I work in a namespace such as:
Then if I declare a class and a function right there:
KDevelop cannot find the class. If I, however, remove the leading "\" in the function definition:
The class is found by KDevelop and displays just fine. However, that code doesn't work, because PHP is looking for the class in current namespace if the leading backslash isn't present. Using the "use" declaration instead doesn't seem to help, as the class isn't found either:
The tooltip in both cases reads:
Where Table is obviously the class in question. Is that a problem with my configuration, or is that actually a bug in the PHP module? I couldn't find any mention of that googling around, though I may have missed something. Thanks! |
Registered Member
|
Sorry, failed to mention versions and stuff!
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]