Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fabiosal opened this issue May 7, 2021 · 1 comment
Open

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

fabiosal opened this issue May 7, 2021 · 1 comment

Comments

@fabiosal
Copy link

fabiosal commented May 7, 2021

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
Copy link

Krato commented Feb 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants