Skip to content

PHPStan: TypeRegistry->register_enum_type() name should not be required #3392

@zngly-vlad

Description

@zngly-vlad

Description

Image

Steps to reproduce

When using the type_registry class to register enums, a name is required in the config, this is not the same when using register_graphql_enum_type()

function TypeRegistry::register_enum_type(
    string $type_name,
    array{astNode: EnumTypeDefinitionNode|null, description: string|null, extensionASTNodes: EnumTypeExtensionNode[]|null, kind: string|null, name: string, values: array[]} $config
): void

Additional context

No response

WPGraphQL Version

2.3.3

WordPress Version

6.8.1

PHP Version

8.2

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions