diff --git a/src/Type/Definition/FieldDefinition.php b/src/Type/Definition/FieldDefinition.php index 8f409bf8c..8e48fd6b5 100644 --- a/src/Type/Definition/FieldDefinition.php +++ b/src/Type/Definition/FieldDefinition.php @@ -30,7 +30,7 @@ class FieldDefinition * Callback for resolving field value given parent value. * Mutually exclusive with `map` * - * @var callable + * @var callable|null */ public $resolveFn; @@ -38,7 +38,7 @@ class FieldDefinition * Callback for mapping list of parent values to list of field values. * Mutually exclusive with `resolve` * - * @var callable + * @var callable|null */ public $mapFn; diff --git a/src/Type/Definition/ObjectType.php b/src/Type/Definition/ObjectType.php index f4abe0e04..8f1d17a41 100644 --- a/src/Type/Definition/ObjectType.php +++ b/src/Type/Definition/ObjectType.php @@ -62,7 +62,7 @@ class ObjectType extends Type implements OutputType, CompositeType, NullableType /** @var ObjectTypeExtensionNode[] */ public $extensionASTNodes; - /** @var callable */ + /** @var callable|null */ public $resolveFieldFn; /** @var FieldDefinition[] */