bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.56k stars 92 forks source link

Highligh of current property not working for constructor property promotion #2887

Closed momala454 closed 1 month ago

momala454 commented 1 month ago

Describe the bug When a property created in constructor is highlighted, it does not high all usage of this property

To Reproduce

class HelloWorld
{
    public int $hello;

    public function __construct(public int $abcdef)
    {}

    public function world(): void
    {
        $this->abcdef = 1;
        $this->hello = 2;
    }
}

Expected behavior $abcdef should be highlighted on world() method when my cursor is on the constructor parameter $abcdef

Screenshots Working for $hello : image

Not working for $abcdef : image

Platform and version windows 10 1.10.4

bmewburn commented 1 month ago

duplicate of #1964