@@ -191,12 +191,12 @@ |
||
| 191 | 191 | { |
| 192 | 192 | $fieldType = $field->getType(); |
| 193 | 193 | if (is_null($value)) { |
| 194 | - if ($fieldType->getKind() == TypeMap::KIND_NON_NULL) { |
|
| 194 | + if ($fieldType->getKind() == TypeMap::KIND_NON_NULL) { |
|
| 195 | 195 | $this->executionContext->addError(new ResolveException(sprintf('Cannot return null for non-nullable field %s', $field->getName()))); |
| 196 | 196 | return false; |
| 197 | - } |
|
| 197 | + } |
|
| 198 | 198 | |
| 199 | - return true; |
|
| 199 | + return true; |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | $fieldType = $this->resolveTypeIfAbstract($fieldType->getNullableType(), $value); |