For instance I aliased a certain class, and I'm using a public static method from that class
Hovering on the class, gives me a nice popup about it (yay!)
However hovering on the method itself doesn't provide any info about it, event though there is a nice docblock + typehinting on that method
Hovering on the passed argument works (since it's inside the method where this other method is being called)
The same thing happens when I try to check any constant in a class, either defined in the class (self::CONSTANT) or one that is inherited (static::CONSTANT). Or when I'm having a dependency injection, the passed object and the class methods from the object's class are not typehinted.
Any workarounds for this, or is this not implemented/possible?
I'm using Language Server Protocol support for Sublime Text 3, and I'm wondering is it possible to include hinting of the constants or static methods in PHP?
For instance I aliased a certain class, and I'm using a
public static
method from that classHovering on the class, gives me a nice popup about it (yay!)
However hovering on the method itself doesn't provide any info about it, event though there is a nice docblock + typehinting on that method
Hovering on the passed argument works (since it's inside the method where this other method is being called)
The same thing happens when I try to check any constant in a class, either defined in the class (
self::CONSTANT
) or one that is inherited (static::CONSTANT
). Or when I'm having a dependency injection, the passed object and the class methods from the object's class are not typehinted.Any workarounds for this, or is this not implemented/possible?