Completed
Pull Request — master (#58)
by Sebastian
03:04
created
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,12 +191,12 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.