Completed
Pull Request — master (#45)
by Daniel
04:14
created
src/Execution/Processor.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,8 +173,12 @@
 block discarded – undo
173 173
             $kind === TypeMap::KIND_LIST ||
174 174
             ($kind === TypeMap::KIND_NON_NULL && $fieldType->getNamedType()->getKind() === TypeMap::KIND_LIST)
175 175
         ) {
176
-            if ($kind === TypeMap::KIND_NON_NULL) $fieldType = $fieldType->getNamedType();
177
-            if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) return null;
176
+            if ($kind === TypeMap::KIND_NON_NULL) {
177
+                $fieldType = $fieldType->getNamedType();
178
+            }
179
+            if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) {
180
+                return null;
181
+            }
178 182
 
179 183
             $namedType          = $fieldType->getNamedType();
180 184
             $isAbstract         = TypeService::isAbstractType($namedType);
Please login to merge, or discard this patch.