diff --git a/src/Mappers/Proxys/MutableAdapterTrait.php b/src/Mappers/Proxys/MutableAdapterTrait.php index f4f2f8b3ad..5c780b2471 100644 --- a/src/Mappers/Proxys/MutableAdapterTrait.php +++ b/src/Mappers/Proxys/MutableAdapterTrait.php @@ -39,13 +39,13 @@ public function assertValid(): void $this->type->assertValid(); } - public function jsonSerialize():string + public function jsonSerialize(): string { return $this->type->jsonSerialize(); } - public function toString():string + public function toString(): string { return $this->type->toString(); } diff --git a/src/Mappers/Proxys/MutableObjectTypeAdapter.php b/src/Mappers/Proxys/MutableObjectTypeAdapter.php index cae384e1e0..b4256631a8 100644 --- a/src/Mappers/Proxys/MutableObjectTypeAdapter.php +++ b/src/Mappers/Proxys/MutableObjectTypeAdapter.php @@ -3,23 +3,11 @@ namespace TheCodingMachine\GraphQLite\Mappers\Proxys; -use Exception; -use GraphQL\Error\InvariantViolation; -use GraphQL\Type\Definition\FieldDefinition; use GraphQL\Type\Definition\InterfaceType; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\ResolveInfo; -use GraphQL\Utils\Utils; -use RuntimeException; -use TheCodingMachine\GraphQLite\Types\MutableInterface; use TheCodingMachine\GraphQLite\Types\MutableObjectType; -use TheCodingMachine\GraphQLite\Types\NoFieldsException; use function assert; -use function call_user_func; -use function is_array; -use function is_callable; -use function is_string; -use function sprintf; /** * An adapter class (actually a proxy) that adds the "mutable" feature to any Webonyx ObjectType. @@ -36,6 +24,7 @@ public function __construct(ObjectType $type, ?string $className = null) $this->type = $type; $this->className = $className; $this->name = $type->name; + $this->description = $type->description; $this->config = $type->config; $this->astNode = $type->astNode; $this->extensionASTNodes = $type->extensionASTNodes;