Skip to content
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

Add PhpStan #180

Merged
merged 9 commits into from
Dec 5, 2022
Merged

Add PhpStan #180

merged 9 commits into from
Dec 5, 2022

Conversation

unfulvio-godaddy
Copy link
Member

@unfulvio-godaddy unfulvio-godaddy commented Dec 2, 2022

Summary

This PR adds PhpStan support to WP_Mock.

PhpStan is added as a dev-dependency and a phpstan.neon config file is added. Then, a baseline was created to cover the existing code.

Despite that... for some reason PhpStan seems to ignore the baseline or perhaps doesn’t generate a thorough baseline so it still outputs error when running analysis from CLI or CI. Need to resolve this before this can be merged.

QA

  • Code review
  • Unit tests pass on CI
  • Code analysis passes on CI

@unfulvio-godaddy unfulvio-godaddy marked this pull request as ready for review December 2, 2022 08:42
@coveralls
Copy link

coveralls commented Dec 2, 2022

Coverage Status

Coverage remained the same at 12.166% when pulling bc90599 on add-phpstan into 9b6fbab on trunk.

@unfulvio-godaddy unfulvio-godaddy requested a review from a team December 2, 2022 09:03
@unfulvio-godaddy unfulvio-godaddy self-assigned this Dec 2, 2022
@unfulvio-godaddy unfulvio-godaddy merged commit 4223c23 into trunk Dec 5, 2022
@unfulvio-godaddy unfulvio-godaddy deleted the add-phpstan branch December 5, 2022 03:07
@jeffpaul jeffpaul added this to the 0.6.0 milestone Dec 5, 2022
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.

4 participants