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

fix: [PHPStan] actions should return void #88

Merged
merged 1 commit into from
May 19, 2023

Conversation

justlevine
Copy link
Contributor

This PR changes the wpgraphql_content_blocks_init() method to return void.

Note: I do not believe this should be considered a breaking change since the only valid use of that method is on add_action('plugins_loaded').

Once merged, PHPStan Level 0 (#87) will pass and a CI workflow can be added to run phpstan to prevent the further introduction of Level 0 errors into the codebase.

@justlevine justlevine requested a review from a team as a code owner May 19, 2023 02:06
@changeset-bot
Copy link

changeset-bot bot commented May 19, 2023

🦋 Changeset detected

Latest commit: 7c888ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@wpengine/wp-graphql-content-blocks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mindctrl mindctrl merged commit 536848a into wpengine:main May 19, 2023
@justlevine justlevine deleted the fix/dont-return-on-init branch May 19, 2023 13:49
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