In my PHP project I have two different models that have a function with the same.
class Foo
{
function xyz()
{
return "foo";
}
}
and
class Bar
{
function xyz()
{
return "bar";
}
}
The problem with Geany is when I try to go to a function definition. Consider the following:
$bla = new Foo();
echo $bla->xyz();
Normally if I CTRL+click on xyz
I except it to go to function xyz()
in class Foo
, but Geany gets completely confused and goes to the definition in Bar
.
Is there a way I can make Geany go to the actual definition, not the first one it finds?
Sounds like, this editor has a simple lexer/parser-implementation for PHP with weak class/method/function-indexing. You can do 2 things to improve this scenario:
Another thing to mention: Due to PHPs weeknesses in type-hinting, there are a few ways to extend the abilities of some IDEs. Here are some examples: http://code.neox.net/2009/03/10/eclipse-pdt-code-completion-and-zend-framework/