It seems this is caused by an incorrect implementation of an interface that the compiler doesn't detect. The following code snipped causes the error:
public class Foo implements IFoo
{
public function bar():String { return ""; }
}
public interface IFoo
{
function get bar():String;
}
The problem is caused by the fact that IFoo.bar
is a getter, but Foo.bar()
is a normal method. This is a kind of error that could be easily missed when looking through your code, and that would be fixed if you delete and rewrite everything.