Skip to content

Conversation

@justlevine
Copy link
Collaborator

What does this implement/fix? Explain your changes.

This PR improves the type hinting inside WPScalar to use explicit array shapes instead of mixed whenever possible, all the way through to the register_graphql_scalar() $config array.

Important

This PR is based on #3373 , which should be merged first.
Relevant diff: 8be4e3e

Does this close any currently open issues?

Any other comments?

@justlevine justlevine added needs: reviewer response This needs the attention of a codeowner or maintainer scope: api Issues related to access functions, actions, and filters type: chore Maintenance tasks, refactoring, and other non-functional changes labels May 2, 2025
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 8be4e3e and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

View more on Code Climate.

@justlevine justlevine requested review from Copilot and jasonbahl May 2, 2025 23:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 23 changed files in this pull request and generated no comments.

Files not reviewed (20)
  • access-functions.php: Language not supported
  • src/AppContext.php: Language not supported
  • src/Data/Connection/AbstractConnectionResolver.php: Language not supported
  • src/Data/DataSource.php: Language not supported
  • src/Data/Loader/AbstractDataLoader.php: Language not supported
  • src/Registry/TypeRegistry.php: Language not supported
  • src/Request.php: Language not supported
  • src/Router.php: Language not supported
  • src/Server/ValidationRules/QueryDepth.php: Language not supported
  • src/Server/WPHelper.php: Language not supported
  • src/Type/Enum/ContentNodeIdTypeEnum.php: Language not supported
  • src/Type/Enum/PluginStatusEnum.php: Language not supported
  • src/Type/Enum/PostStatusEnum.php: Language not supported
  • src/Type/Enum/TermNodeIdTypeEnum.php: Language not supported
  • src/Type/Enum/UserNodeIdTypeEnum.php: Language not supported
  • src/Type/WPEnumType.php: Language not supported
  • src/Type/WPScalar.php: Language not supported
  • src/Utils/InstrumentSchema.php: Language not supported
  • src/Utils/QueryAnalyzer.php: Language not supported
  • src/Utils/QueryLog.php: Language not supported

@justlevine justlevine added the status: in review Awaiting review before merging or closing label May 2, 2025
jasonbahl
jasonbahl previously approved these changes May 5, 2025
@justlevine justlevine dismissed jasonbahl’s stale review May 5, 2025 16:55

The merge-base changed after approval.

@jasonbahl jasonbahl merged commit fa39526 into wp-graphql:develop May 5, 2025
37 of 38 checks passed
@justlevine justlevine deleted the chore/scalar-config-shapes branch May 5, 2025 16:59
pull bot pushed a commit to Zezo-Ai/wp-graphql that referenced this pull request May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs: reviewer response This needs the attention of a codeowner or maintainer scope: api Issues related to access functions, actions, and filters status: in review Awaiting review before merging or closing type: chore Maintenance tasks, refactoring, and other non-functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants