|
12 | 12 | use GraphQL\Language\AST\EnumValueNode; |
13 | 13 | use GraphQL\Language\AST\Node; |
14 | 14 | use GraphQL\Language\Printer; |
15 | | -use GraphQL\Utils\AppliedDirectives; |
16 | 15 | use GraphQL\Utils\MixedStore; |
17 | 16 | use GraphQL\Utils\Utils; |
18 | 17 |
|
|
24 | 23 | * value?: mixed, |
25 | 24 | * deprecationReason?: string|null, |
26 | 25 | * description?: string|null, |
27 | | - * directives?: iterable<DirectiveNode>|null, |
| 26 | + * directives?: array<DirectiveNode>|null, |
28 | 27 | * astNode?: EnumValueDefinitionNode|null |
29 | 28 | * } |
30 | 29 | * @phpstan-type EnumValues iterable<string, PartialEnumValueConfig>|iterable<string, mixed>|iterable<int, string> |
31 | 30 | * @phpstan-type EnumTypeConfig array{ |
32 | 31 | * name?: string|null, |
33 | 32 | * description?: string|null, |
34 | 33 | * values: EnumValues|callable(): EnumValues, |
35 | | - * directives?: iterable<DirectiveNode>|null, |
| 34 | + * directives?: array<DirectiveNode>|null, |
36 | 35 | * astNode?: EnumTypeDefinitionNode|null, |
37 | 36 | * extensionASTNodes?: array<EnumTypeExtensionNode>|null |
38 | 37 | * } |
@@ -80,7 +79,7 @@ public function __construct(array $config) |
80 | 79 | $this->description = $config['description'] ?? null; |
81 | 80 | $this->astNode = $config['astNode'] ?? null; |
82 | 81 | $this->extensionASTNodes = $config['extensionASTNodes'] ?? []; |
83 | | - $this->directives = AppliedDirectives::normalize($config['directives'] ?? null); |
| 82 | + $this->directives = $config['directives'] ?? []; |
84 | 83 |
|
85 | 84 | $this->config = $config; |
86 | 85 | } |
|
0 commit comments