intelephense-docs
intelephense-docs copied to clipboard
Implementation not found when method is implemented in a trait
The Implementation is not found when method is implemented in a trait used in a class that implements the interface
an example:
interface EngineInterface
{
public function run(): void;
}
trait Engine
{
public function run(): void
{
echo "brum";
}
}
class Veichle implements EngineInterface
{
use Engine;
}
finding implementations for run() method inside the Engine Interface result in implementation not found instead of pointing on run() method inside the Engine trait
It happens to me too. Any way to make it work?