From 1672bd33e3f8079396e0d4b728a69da2ca114322 Mon Sep 17 00:00:00 2001 From: vladar Date: Wed, 2 Nov 2016 05:08:17 +0700 Subject: [PATCH] Minor comments improvement --- src/Type/Definition/LeafType.php | 6 +++--- src/Type/Definition/ObjectType.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Type/Definition/LeafType.php b/src/Type/Definition/LeafType.php index 51d6af2..e813628 100644 --- a/src/Type/Definition/LeafType.php +++ b/src/Type/Definition/LeafType.php @@ -17,7 +17,7 @@ interface LeafType public function serialize($value); /** - * Parses an externally provided value to use as an input + * Parses an externally provided value (query variable) to use as an input * * @param mixed $value * @return mixed @@ -25,9 +25,9 @@ interface LeafType public function parseValue($value); /** - * Parses an externally provided literal value to use as an input + * Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input * - * @param \GraphQL\Language\AST\Value $valueAST + * @param \GraphQL\Language\AST\Node $valueAST * @return mixed */ public function parseLiteral($valueAST); diff --git a/src/Type/Definition/ObjectType.php b/src/Type/Definition/ObjectType.php index 134a248..f40e0b9 100644 --- a/src/Type/Definition/ObjectType.php +++ b/src/Type/Definition/ObjectType.php @@ -99,7 +99,7 @@ class ObjectType extends Type implements OutputType, CompositeType Config::MAYBE_THUNK ), 'isTypeOf' => Config::CALLBACK, // ($value, $context, ResolveInfo $info) => boolean - 'resolveField' => Config::CALLBACK + 'resolveField' => Config::CALLBACK // ($value, $args, $context, ResolveInfo $info) => $fieldValue ]); $this->name = $config['name'];