Exclude second InstalledVersions.php from analysis #4364
-
Hello,
Unfortunately, I am running into the following error when executing phpstan now:
I already investigated the error a bit and found the following related issues:
As far as I understand, the error happens because phpstan will analyze the The error disappears if i remove the Unfortunately, the following configuration does not do this for me:
Thanks in advance for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Looks like you should be able to fix this by upgrading your Symfony version: symfony/symfony#39017 At least that's what helper @ossinkine here: #4047 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the fast response! The project uses Symfony 5.2.1 which shout be the most recent version:
I suspect that symfony/symfony#39017 solved this only for the I am aware that the root cause of this cannot be fixed by phpstan. But maybe its possible to configure phpstan to somehow ignore the second |
Beta Was this translation helpful? Give feedback.
Thanks a lot for the fast response! The project uses Symfony 5.2.1 which shout be the most recent version: