@@ -56,13 +56,13 @@ You can help GraphQLite by manually specifying the output type to use:
5656<!--PHP 8+-->
5757```php
5858 #[Field(outputType: "ID")]
59- ```
59+ ```
6060<!-- PHP 7+-->
6161``` php
6262 /**
6363 * @Field(name="id", outputType="ID")
6464 */
65- ```
65+ ```
6666<!-- END_DOCUSAURUS_CODE_TABS-->
6767
6868## Usage
@@ -95,7 +95,7 @@ you use.
9595
9696### Symfony users
9797
98- Any class extending ` GraphQL\Type\Definition\ObjectType ` (and available in the container) will be automatically detected
98+ Any class extending ` GraphQL\Type\Definition\ObjectType ` (and available in the container) will be automatically detected
9999by Symfony and added to the schema.
100100
101101If you want to automatically map the output type to a given PHP class, you will have to explicitly declare the output type
@@ -148,9 +148,15 @@ In order to add a scalar type in GraphQLite, you need to:
148148` ` ` php
149149interface RootTypeMapperInterface
150150{
151- public function toGraphQLOutputType(Type $type, ?OutputType $subType, ReflectionMethod $refMethod, DocBlock $docBlockObj): OutputType;
151+ /**
152+ * @param \R eflectionMethod|\R eflectionProperty $reflector
153+ */
154+ public function toGraphQLOutputType(Type $type, ?OutputType $subType, $reflector, DocBlock $docBlockObj): OutputType;
152155
153- public function toGraphQLInputType(Type $type, ?InputType $subType, string $argumentName, ReflectionMethod $refMethod, DocBlock $docBlockObj): InputType;
156+ /**
157+ * @param \R eflectionMethod|\R eflectionProperty $reflector
158+ */
159+ public function toGraphQLInputType(Type $type, ?InputType $subType, string $argumentName, $reflector, DocBlock $docBlockObj): InputType;
154160
155161 public function mapNameToType(string $typeName): NamedType;
156162}
@@ -235,6 +241,6 @@ You can register your own root mapper factories using the `SchemaFactory::addRoo
235241` ` ` php
236242$schemaFactory->addRootTypeMapperFactory(new AnyScalarTypeMapperFactory());
237243` ` `
238-
239- If you are using the Symfony bundle, the factory will be automatically registered, you have nothing to do (the service
244+
245+ If you are using the Symfony bundle, the factory will be automatically registered, you have nothing to do (the service
240246is automatically tagged with the "graphql.root_type_mapper_factory" tag).
0 commit comments