vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

[Bug] Intelephense doesn't work / report missing functions in Traits

Open PatrickVeltrop opened this issue 1 year ago • 1 comments

Intelephense doesn't work / report missing functions in Traits

To Reproduce

<?php

trait SomeTrait
{
    public function foo()
    {
        $this->nope();

        return 'foo';
    }
}

Change this to a class and intelephense will report the missing method instantly. It won't report anything when this is a trait.

Intelephense should report any missing properties and methods in here.

W11 WSL + Ubuntu Intelephense 1.9.5

PatrickVeltrop avatar Oct 05 '23 20:10 PatrickVeltrop