bmewburn / intelephense-docs

Documentation for the Intelephense PHP language server
https://intelephense.com
Other
184 stars 17 forks source link

Implementation not found when method is implemented in a trait #40

Open fabiosal opened 3 years ago

fabiosal commented 3 years ago

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

Krato commented 7 months ago

It happens to me too. Any way to make it work?