| Conditions | 6 | 
| Paths | 4 | 
| Total Lines | 25 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 24 | protected function enterSelectionSet(SelectionSetNode $node): ?NodeInterface | ||
| 25 |     { | ||
| 26 | return null; | ||
| 27 | } | ||
| 28 | |||
| 29 | /** | ||
| 30 | * @inheritdoc | ||
| 31 | */ | ||
| 32 | protected function enterFragmentDefinition(FragmentDefinitionNode $node): ?NodeInterface | ||
| 33 |     { | ||
| 34 | return null; | ||
| 35 | } | ||
| 36 | |||
| 37 | /** | ||
| 38 | * @inheritdoc | ||
| 39 | */ | ||
| 40 | protected function enterVariableDefinition(VariableDefinitionNode $node): ?NodeInterface | ||
| 41 |     { | ||
| 42 | $variable = $node->getVariable(); | ||
| 43 | $variableName = $variable->getNameValue(); | ||
| 44 | $defaultValue = $node->getDefaultValue(); | ||
| 45 | $type = $this->context->getInputType(); | ||
| 46 | |||
| 47 |         if (null !== $defaultValue && $type instanceof NonNullType) { | ||
| 48 | $this->context->reportError( | ||
| 49 | new ValidationException( | ||
| 59 |