|
10 | 10 | use GraphQL\Type\Definition\Type; |
11 | 11 | use Murtukov\PHPCodeGenerator\ArrowFunction; |
12 | 12 | use Murtukov\PHPCodeGenerator\Closure; |
13 | | -use Murtukov\PHPCodeGenerator\Collection as MurtucovCollection; |
14 | 13 | use Murtukov\PHPCodeGenerator\GeneratorInterface; |
15 | 14 | use Murtukov\PHPCodeGenerator\Literal; |
16 | 15 | use Murtukov\PHPCodeGenerator\PhpFile; |
|
24 | 23 | use Overblog\GraphQLBundle\Generator\ResolveInstructionBuilder; |
25 | 24 | use Overblog\GraphQLBundle\Generator\TypeGenerator; |
26 | 25 | use Overblog\GraphQLBundle\Generator\ValidationRulesBuilder; |
| 26 | +use function array_key_exists; |
| 27 | +use function in_array; |
| 28 | +use function is_string; |
27 | 29 |
|
28 | 30 | class FieldsBuilder implements ConfigBuilderInterface |
29 | 31 | { |
@@ -71,15 +73,13 @@ public function build(TypeConfig $typeConfig, Collection $builder, PhpFile $phpF |
71 | 73 | * 'resolve' => {@see \Overblog\GraphQLBundle\Generator\ResolveInstructionBuilder::build()}, |
72 | 74 | * 'complexity' => {@see buildComplexity}, |
73 | 75 | * ] |
74 | | - * </code> |
75 | | - * |
76 | | - * @return GeneratorInterface|Collection|string |
| 76 | + * </code>. |
77 | 77 | * |
78 | 78 | * @throws GeneratorException |
79 | 79 | * |
80 | 80 | * @internal |
81 | 81 | */ |
82 | | - protected function buildField(FieldConfig $fieldConfig, TypeConfig $typeConfig, PhpFile $phpFile): MurtucovCollection |
| 82 | + protected function buildField(FieldConfig $fieldConfig, TypeConfig $typeConfig, PhpFile $phpFile): Collection |
83 | 83 | { |
84 | 84 | // TODO(any): modify `InputValidator` and `TypeDecoratorListener` to support it before re-enabling this |
85 | 85 | // see https://github.com/overblog/GraphQLBundle/issues/973 |
@@ -179,7 +179,7 @@ protected function buildAccess($access) |
179 | 179 | * 'description' => 'Some fancy description.', |
180 | 180 | * 'defaultValue' => 'admin', |
181 | 181 | * ] |
182 | | - * </code> |
| 182 | + * </code>. |
183 | 183 | * |
184 | 184 | * @throws GeneratorException |
185 | 185 | * |
|
0 commit comments