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

No reference found for a method in a trait called in an extended class #3073

Open
momala454 opened this issue Sep 23, 2024 · 0 comments
Open
Labels

Comments

@momala454
Copy link

momala454 commented Sep 23, 2024

Describe the bug
Intelephense doesn't find the calls to a method declared in a trait and used in an extended class

To Reproduce

trait Hello
{
    public function world(): void
    {
    }
}

abstract class HelloWorld
{
    public function world(): void
    {
    }
}

class HelloWorld2 extends HelloWorld
{
    use Hello;
}

function Hi(HelloWorld $a): void
{
    $a->world();
}

Expected behavior
See the reference in the call in the function Hi

Screenshots
0 references:
image

Platform and version
1.12.6

@bmewburn bmewburn added the bug label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants