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

Opening files with errors in anonymous classes fail

Open steffans opened this issue 1 year ago • 1 comments

Clicking on errors in anonymous classes will fail to open the file in the editor, because the file can not be found.

Here is an example test.php, set phpstan to level 6

<?php

return new class {
    protected array $foo = ['a', 'b', 'c'];
};

Click on the error to open it

Bildschirmfoto 2024-03-20 um 07 36 48

steffans avatar Mar 20 '24 06:03 steffans

Thanks for the report. Can you check out the pre-release version and see if the issue is still present there? I can't seem to replicate it there.

SanderRonde avatar Mar 23 '24 20:03 SanderRonde

Issues go stale after too much time without activity. If inactive for another 7 days this issue will be closed.

github-actions[bot] avatar May 23 '24 02:05 github-actions[bot]