Skip to content

Fix invalid docs and return types as highlighted by static analysis #645

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 6 commits into from
Feb 7, 2023

Conversation

kt-12
Copy link
Member

@kt-12 kt-12 commented Feb 6, 2023

Summary

Fixes #622

Fix issues with doc type and return that was throwing error in static test.

Relevant technical choices

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@kt-12 kt-12 added [Type] Bug An existing feature is broken Miscellaneous Issues not related to an existing focus area Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release labels Feb 6, 2023
@kt-12 kt-12 changed the title Static test bug fixes Static test - fix doc types and return Feb 6, 2023
@felixarntz felixarntz added this to the 2.0.0 milestone Feb 6, 2023
@felixarntz felixarntz added [Focus] Database and removed no milestone PRs that do not have a defined milestone for release Miscellaneous Issues not related to an existing focus area labels Feb 6, 2023
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kt-12 Thanks, LGTM!

@felixarntz felixarntz changed the title Static test - fix doc types and return Fix invalid docs and return types as highlighted by static analysis Feb 6, 2023
@felixarntz
Copy link
Member

@aristath This fixes a few minor things in the SQLite module, so I wanted to make sure you see this. Right now we're in a bit of an unfortunate situation of having the code duplicated, so can you make sure to address this in your plugin as well? Should be a quick fix. (The return types need to align with the parent classes, for example.)

@felixarntz
Copy link
Member

@mukeshpanchal27 Can you give this a 2nd review and approval please?

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kt-12, The changes look good to me!

@mukeshpanchal27 mukeshpanchal27 merged commit b26dca8 into trunk Feb 7, 2023
@mukeshpanchal27 mukeshpanchal27 deleted the bug/static-test-fixes branch February 7, 2023 04:00
aristath added a commit to WordPress/sqlite-database-integration that referenced this pull request Feb 7, 2023
@aristath
Copy link
Member

aristath commented Feb 7, 2023

Backported to the standalone plugin as well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Issues for the overall performance plugin infrastructure [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benefit from static analysis
4 participants