Skip to content

Psalm: Enable totallyTyped=true and bump type coverage to 100% #94

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

Merged
merged 1 commit into from
Mar 1, 2020
Merged

Psalm: Enable totallyTyped=true and bump type coverage to 100% #94

merged 1 commit into from
Mar 1, 2020

Conversation

orklah
Copy link
Contributor

@orklah orklah commented Feb 11, 2020

This PR enforce a little more checks with Psalm

I had to ignore three errors. Two have the same cause: the library doesn't always check ArrayIterator::valid() before calling ArrayIterator::current so it can get a null value. This is not expected by Psalm. It's sort of false positive but caused by a bad practice...

The third I think is legitimate but I didn't take the time to prove it so I'll ignore it for now.

@orklah
Copy link
Contributor Author

orklah commented Feb 11, 2020

Arg, I don't get the same result locally than on CI. I think we have an old version of Psalm in CI and it's missing some important elements.

@jaapio Would you mind bumping Psalm?

@jaapio
Copy link
Member

jaapio commented Feb 12, 2020

I will have a look at how to fix this.

@jaapio jaapio self-assigned this Feb 12, 2020
@jaapio jaapio merged commit 3a0a285 into phpDocumentor:master Mar 1, 2020
@jaapio
Copy link
Member

jaapio commented Mar 1, 2020

I upgrade psalm, will fix the build on master when needed. But I expect it to pass.

@orklah
Copy link
Contributor Author

orklah commented Mar 1, 2020

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants