@@ -265,23 +265,23 @@ |
||
| 265 | 265 | ); |
| 266 | 266 | } elseif ($hasValue) { |
| 267 | 267 | if ($argumentValueNode instanceof NullValueNode) { |
| 268 | - // If the explicit value `null` was provided, an entry in the coerced |
|
| 269 | - // values must exist as the value `null`. |
|
| 268 | + // If the explicit value `null` was provided, an entry in the coerced |
|
| 269 | + // values must exist as the value `null`. |
|
| 270 | 270 | $coercedValues[$name] = null; |
| 271 | 271 | } elseif ($argumentValueNode instanceof VariableNode) { |
| 272 | 272 | $variableName = $argumentValueNode->name->value; |
| 273 | 273 | Utils::invariant($variableValues !== null, 'Must exist for hasValue to be true.'); |
| 274 | - // Note: This does no further checking that this variable is correct. |
|
| 275 | - // This assumes that this query has been validated and the variable |
|
| 276 | - // usage here is of the correct type. |
|
| 274 | + // Note: This does no further checking that this variable is correct. |
|
| 275 | + // This assumes that this query has been validated and the variable |
|
| 276 | + // usage here is of the correct type. |
|
| 277 | 277 | $coercedValues[$name] = $variableValues[$variableName] ?? null; |
| 278 | 278 | } else { |
| 279 | 279 | $valueNode = $argumentValueNode; |
| 280 | 280 | $coercedValue = AST::valueFromAST($valueNode, $argType, $variableValues); |
| 281 | 281 | if (Utils::isInvalid($coercedValue)) { |
| 282 | - // Note: ValuesOfCorrectType validation should catch this before |
|
| 283 | - // execution. This is a runtime check to ensure execution does not |
|
| 284 | - // continue with an invalid argument value. |
|
| 282 | + // Note: ValuesOfCorrectType validation should catch this before |
|
| 283 | + // execution. This is a runtime check to ensure execution does not |
|
| 284 | + // continue with an invalid argument value. |
|
| 285 | 285 | throw new Error( |
| 286 | 286 | 'Argument "' . $name . '" has invalid value ' . Printer::doPrint($valueNode) . '.', |
| 287 | 287 | [$argumentValueNode] |