@@ -59,7 +59,7 @@ |
||
| 59 | 59 | return false; |
| 60 | 60 | } |
| 61 | 61 | else { |
| 62 | - $this->lastError = null; |
|
| 62 | + $this->lastError = null; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return $this->getNullableType()->isValidValue($value); |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | if ($value === null) { |
| 58 | 58 | $this->lastError = sprintf('Field "%s" must not be NULL', $this->getName()); |
| 59 | 59 | return false; |
| 60 | - } |
|
| 61 | - else { |
|
| 60 | + } else { |
|
| 62 | 61 | $this->lastError = null; |
| 63 | 62 | } |
| 64 | 63 | |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | case TypeMap::KIND_INPUT_OBJECT: |
| 52 | 52 | case TypeMap::KIND_LIST: |
| 53 | 53 | if (!$argument->getType()->isValidValue($astArgument->getValue())) { |
| 54 | - $error = $argument->getType()->getLastError() ?: '(no details available)'; |
|
| 55 | - throw new ResolveException(sprintf('Not valid type for argument "%s" in query "%s": %s', $astArgument->getName(), $field->getName(), $error), $astArgument->getLocation()); |
|
| 54 | + $error = $argument->getType()->getLastError() ?: '(no details available)'; |
|
| 55 | + throw new ResolveException(sprintf('Not valid type for argument "%s" in query "%s": %s', $astArgument->getName(), $field->getName(), $error), $astArgument->getLocation()); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | break; |