@@ -148,11 +148,15 @@ |
||
148 | 148 | protected function collectValueForQueryWithType(Query $query, AbstractType $fieldType, $resolvedValue) |
149 | 149 | { |
150 | 150 | $fieldType = $this->resolveValidator->resolveTypeIfAbstract($fieldType, $resolvedValue); |
151 | - if (is_null($resolvedValue)) return null; |
|
151 | + if (is_null($resolvedValue)) { |
|
152 | + return null; |
|
153 | + } |
|
152 | 154 | |
153 | 155 | $value = []; |
154 | 156 | if ($fieldType->getKind() == TypeMap::KIND_LIST) { |
155 | - if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) return null; |
|
157 | + if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) { |
|
158 | + return null; |
|
159 | + } |
|
156 | 160 | foreach ($resolvedValue as $resolvedValueItem) { |
157 | 161 | $value[] = []; |
158 | 162 | $index = count($value) - 1; |