@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | class InputValueNode extends BaseValueNode |
19 | 19 | { |
20 | 20 | /** |
21 | - * @return iterable|BaseValueNode[] |
|
21 | + * @return \Generator |
|
22 | 22 | */ |
23 | 23 | public function toPrimitive(): iterable |
24 | 24 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return iterable|BaseValueNode[] |
|
29 | + * @return \Generator |
|
30 | 30 | */ |
31 | 31 | public function getValues(): iterable |
32 | 32 | { |
@@ -9,9 +9,6 @@ |
||
9 | 9 | |
10 | 10 | namespace Railt\SDL\Compiler\Ast\Value; |
11 | 11 | |
12 | -use Railt\Reflection\Contracts\Document; |
|
13 | -use Railt\SDL\Compiler\Builder\Value\ValueInterface; |
|
14 | - |
|
15 | 12 | /** |
16 | 13 | * Class ValueNode |
17 | 14 | */ |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Railt\Parser\Ast\RuleInterface; |
13 | 13 | use Railt\Reflection\Contracts\Definition; |
14 | 14 | use Railt\Reflection\Definition\EnumDefinition; |
15 | -use Railt\SDL\Compiler\Ast\Definition\DirectiveDefinitionNode; |
|
16 | 15 | use Railt\SDL\Compiler\Ast\Definition\EnumDefinitionNode; |
17 | 16 | use Railt\SDL\Compiler\Builder\Builder; |
18 | 17 |
@@ -11,14 +11,10 @@ |
||
11 | 11 | |
12 | 12 | use Railt\Parser\Ast\RuleInterface; |
13 | 13 | use Railt\Reflection\Contracts\Definition; |
14 | -use Railt\Reflection\Contracts\Type as TypeInterface; |
|
15 | 14 | use Railt\Reflection\Definition\Dependent\EnumValueDefinition; |
16 | 15 | use Railt\Reflection\Definition\EnumDefinition; |
17 | -use Railt\Reflection\Type; |
|
18 | 16 | use Railt\SDL\Compiler\Ast\Dependent\EnumValueDefinitionNode; |
19 | -use Railt\SDL\Compiler\Ast\TypeHintNode; |
|
20 | 17 | use Railt\SDL\Compiler\Builder\Builder; |
21 | -use Railt\SDL\Compiler\Builder\Virtual\TypeHint; |
|
22 | 18 | |
23 | 19 | /** |
24 | 20 | * Class EnumValueBuilder |
@@ -115,7 +115,7 @@ |
||
115 | 115 | */ |
116 | 116 | private function validateFieldName(string $field, SchemaFieldDefinitionNode $rule, SchemaDefinition $schema): void |
117 | 117 | { |
118 | - if (! \in_array($field, [self::FIELD_QUERY, self::FIELD_MUTATION, self::FIELD_SUBSCRIPTION], true)) { |
|
118 | + if (!\in_array($field, [self::FIELD_QUERY, self::FIELD_MUTATION, self::FIELD_SUBSCRIPTION], true)) { |
|
119 | 119 | $error = \sprintf('Invalid %s field name "%s"', $schema, $field); |
120 | 120 | |
121 | 121 | throw (new TypeConflictException($error))->throwsIn($schema->getFile(), $rule->getOffset()); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST)) { |
33 | - $result = '[' . $result . ']'; |
|
33 | + $result = '['.$result.']'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | if (self::is($modifiers, ProvidesTypeIndication::IS_LIST_OF_NOT_NULL)) { |