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

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

Closed
momala454 opened this issue May 27, 2024 · 1 comment
Closed

Comments

@momala454
Copy link

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

duplicate of #1964

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