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] WPGraphQLHelpers::format_type_name() handling #100

Merged
merged 2 commits into from
May 22, 2023

Conversation

justlevine
Copy link
Contributor

@justlevine justlevine commented May 22, 2023

This PR refactors WPGraphQLHelpers::format_type_name() to better handle empty string / null values, as well as DRYs up the codebase to use it in more places.

This PR does not address the seemingly duplicate renaming that entered the codebase in #52 .

Caught by PHPStan level 6

@justlevine justlevine requested a review from a team as a code owner May 22, 2023 12:14
@changeset-bot
Copy link

changeset-bot bot commented May 22, 2023

🦋 Changeset detected

Latest commit: 0a7752e

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

@justlevine justlevine changed the title fix: WPGraphQLHelpers::format_type_name() handling fix: [PHPStan] WPGraphQLHelpers::format_type_name() handling May 22, 2023
@justlevine justlevine requested a review from mindctrl May 22, 2023 14:24
@mindctrl mindctrl merged commit f0bc286 into wpengine:main May 22, 2023
@justlevine justlevine deleted the fix/format_type_name-handling branch May 22, 2023 18:08
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