-
Notifications
You must be signed in to change notification settings - Fork 650
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 infers > 100% type coverage #6270
Comments
Hey @DaveLiddament, can you reproduce the issue on https://psalm.dev ? |
Would you mind re-running your test with latest stable ( |
I still get the same issues on 4.9.2.
My lunch break is over, but I'll try and recreate in a standalone project after work today. |
@weirdan I've recreated issue in a standalone project here Results from Psalm:
Also there is no type coverage reported for:
Seems to get different results depending on how and which exception is thrown if the |
Related to #3660 |
Dupe of #3660, closing (but thanks for the info, it led me to the culprit). |
To recreate. Run Psalm on the the SARB codebase. It reports for me
Running with
--stats
all files are 100% apart from this one, which is 103%.I've created a branch with copies of
ArrayUtils.php
to help track down the issue further...I made a copy of
ArrayUtils.php
calledArrayUtils2.php
and removed methods one at a time. Each time I'd run:Trimming down
ArrayUtils2.php
to this:I got 200% type coverage:
I tried other combinations of the method (to see if the issue was with throwing an exception) and I am even more confused:
See ArrayUtils3.php
And ArrayUtils4.php
Running
vendor/bin/psalm --no-cache --stats | grep ArrayUtils
I get:NOTE there is no record of
src/Domain/Utils/ArrayUtils4.php
Let me know if there is any other info I can provide you with to help debug.
Versions of Psalms I've tried this on (both give same result):
The text was updated successfully, but these errors were encountered: