SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
47 stars 8 forks source link

Opening files with errors in anonymous classes fail #64

Closed steffans closed 6 months ago

steffans commented 8 months ago

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
SanderRonde commented 8 months ago

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.

github-actions[bot] commented 6 months ago

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