-
Notifications
You must be signed in to change notification settings - Fork 668
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
psalm.phar fails to check the source it was built from #618
Comments
Yup, this is by design. The code in I added an additional step to ensure that the scoped source passes its own Psalm checks, more or less (i.e. that the scoping doesn't break any behaviour). The linked commit includes that self-check on the scoped files when running |
Well, I see some generally useful definitions in that file, as well as those Psalm-specific changes (PhpParser\*). To me it seems that psalm needs a way to configure those per-project. If this was the case, phar could bundle generic property map, and psalm.xml would add anything needed to check the project at hand (psalm itself in this case). |
Agreed! |
Related to #482 |
Starting from 83811e6
psalm.phar
reports errors when run on the psalm source it was built from. I was able to track it down to differences in bundledsrc/Psalm/PropertyMap.php
, where failing version hadPhpParser\*
replaced withPsalmPhar\\PhpParser
, and it seems it was done deliberately (see patcher changes in that commit).I was under impression that file was meant to serve as a kind data asset, so it it shouldn't be scoped (well, maybe namespace part, but nothing else).
These patcher changes did not produce any differences in any of the other files that patcher is meant for (stubs and call map).
The text was updated successfully, but these errors were encountered: