Skip to content

Commit e94e0fb

Browse files
committed
Fix typos
1 parent 1883e12 commit e94e0fb

File tree

20 files changed

+27
-27
lines changed

20 files changed

+27
-27
lines changed

Diff for: UPGRADE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
UPGRADE FROM 0.14 to 1.0
22
=========================
33

4-
* Removed `use_experimental_executor` configuraton option.
4+
* Removed `use_experimental_executor` configuration option.
55
* Signature of TypeInterface changed from `string $name = null, string $resolveType` to `string $resolveType, ?string $name = null`
66
* Removed deprecated `targetType` from `Query`
77
* Removed deprecated `fieldBuilder` from `Field`

Diff for: docs/annotations/annotations-reference.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Optional attributes:
241241
Deprecated attributes:
242242
- **values** : An array of `@EnumValue`to define description or deprecated reason of enum values
243243

244-
The class will also be used by the `Arguments Transformer` service when an `Enum` is encoutered in a Mutation or Query Input. A property accessor will try to populate a property name `value`.
244+
The class will also be used by the `Arguments Transformer` service when an `Enum` is encountered in a Mutation or Query Input. A property accessor will try to populate a property name `value`.
245245

246246
Example:
247247

@@ -266,7 +266,7 @@ class Planet
266266
```
267267

268268
In the example above, if a query or mutation has this Enum as an argument, the value will be an instance of the class with the enum value as the `value` property. (see [The Arguments Transformer documentation](arguments-transformer.md)).
269-
As the class can be instanciated from the `Arguments Transformer` service, it cannot have a constructor with required arguments.
269+
As the class can be instantiated from the `Arguments Transformer` service, it cannot have a constructor with required arguments.
270270

271271
## @EnumValue
272272

@@ -427,7 +427,7 @@ The corresponding class will also be used by the `Arguments Transformer` service
427427

428428
## @IsPublic
429429

430-
Added on a _class_ in conjunction with `@Type` or `@TypeInterface`, this annotation will define the defaut to set if fields are public or not.
430+
Added on a _class_ in conjunction with `@Type` or `@TypeInterface`, this annotation will define the default to set if fields are public or not.
431431
Added on a _property_ or _method_ in conjunction with `@Field`, it'll define an expression to set if the field is public or not.
432432

433433
Example:
@@ -646,7 +646,7 @@ This annotation is used on a _class_ to define an union.
646646

647647
Required attributes:
648648

649-
- **types** : An array of GraphQL Type as string (can be auto-guessed. See union documenation).
649+
- **types** : An array of GraphQL Type as string (can be auto-guessed. See union documentation).
650650

651651
Optional attributes:
652652

Diff for: docs/annotations/arguments-transformer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# The Arguments Transformer service
22

33
When using annotation, as we use classes to describe our GraphQL objects, it is also possible to create and populate classes instances using GraphQL data.
4-
If a class is used to describe a GraphQL Input, this same class can be instanciated to hold the corresponding GraphQL Input data.
5-
This is where the `Arguments Transformer` comes into play. Knowing the matching between GraphQL types and PHP classes, the service is able to instanciate a PHP classes and populate it with data based on the corresponding GraphQL type.
4+
If a class is used to describe a GraphQL Input, this same class can be instantiated to hold the corresponding GraphQL Input data.
5+
This is where the `Arguments Transformer` comes into play. Knowing the matching between GraphQL types and PHP classes, the service is able to instantiate a PHP classes and populate it with data based on the corresponding GraphQL type.
66
To invoke the Arguments Transformer, we use the `input` expression function in our resolvers.
77

88
## the `arguments` function in expression language

Diff for: docs/annotations/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class RootQuery {
155155
}
156156
```
157157

158-
In order for this to work, the `RootQuery` class must be instanciated at some point if you want to be able to call methods on it.
158+
In order for this to work, the `RootQuery` class must be instantiated at some point if you want to be able to call methods on it.
159159
To do so, the `RootQuery` class must be defined as a service with its FQCN as id.
160160
In the previous example, we need a service name `App\GraphQL\Query\RootQuery`. It works the same way for mutations.
161161
In the previous example, the generated `resolve` config of the `something` field will be `@=service('App\GraphQL\Query\RootQuery').getSomething()`.
@@ -195,7 +195,7 @@ class MyType {
195195
### @Field type auto-guessing when defined on a property with a type hint
196196

197197
The type of the `@Field` annotation can be auto-guessed if it's defined on a property with a type hint.
198-
If the property has a usable type hint this is used and no futher guessing is done.
198+
If the property has a usable type hint this is used and no further guessing is done.
199199

200200
For example:
201201

Diff for: docs/definitions/expression-language.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Examples:
4343
```yaml
4444
@=service('my_service').customMethod()
4545

46-
# Using the 'ser' alias
46+
# Using the 'serv' alias
4747
@=serv('my_service').customMethod()
4848

4949
# Using the FQCN for the service name (only works for public services).

Diff for: docs/definitions/relay/builders.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ FriendsConnection:
1919
edgeType: FriendsConnectionEdge
2020
```
2121
22-
See the class definition for additionnal configuration
22+
See the class definition for additional configuration
2323
2424
2525
## The Relay Edge Fields Builder
@@ -36,4 +36,4 @@ FriendsConnectionEdge:
3636
nodeType: Character
3737
```
3838

39-
See the class definition for additionnal configuration
39+
See the class definition for additional configuration

Diff for: docs/definitions/resolver.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Resolvers can be defined in 2 different ways:
1515
You can declare a resolver (any class that implements `Overblog\GraphQLBundle\Definition\Resolver\QueryInterface` or `Overblog\GraphQLBundle\Definition\Resolver\MutationInterface`) in `src/*Bundle/GraphQL` or `app/GraphQL` and they will be auto discovered.
1616
Auto map classes method are accessible by:
1717
* double-colon (::) to separate service id (class name) and the method names
18-
(example: `AppBunble\GraphQL\CustomResolver::myMethod`)
19-
* for callable classes you can use the service id (example: `AppBunble\GraphQL\InvokeResolver` for a resolver implementing the `__invoke` method) you can also alias a type by implementing `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface` which returns a map of method/alias. The service created will autowire the `__construct` and `Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer` methods.
18+
(example: `AppBundle\GraphQL\CustomResolver::myMethod`)
19+
* for callable classes you can use the service id (example: `AppBundle\GraphQL\InvokeResolver` for a resolver implementing the `__invoke` method) you can also alias a type by implementing `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface` which returns a map of method/alias. The service created will autowire the `__construct` and `Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer` methods.
2020

2121
**Note:**
2222
* When using service id as FQCN in yaml or annotation definition, backslashes must be correctly escaped, here an example:

Diff for: docs/definitions/type-system/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Types can be define 3 different ways:
4141
You can also declare PHP types (any subclass of `GraphQL\Type\Definition\Type`)
4242
in `src/*Bundle/GraphQL` or `app/GraphQL`
4343
they will be auto discover (thanks to auto mapping). Auto map classes are accessible by service id
44-
(example: `AppBunble\GraphQL\Type\DateTimeType`), you can also alias a type by
44+
(example: `AppBundle\GraphQL\Type\DateTimeType`), you can also alias a type by
4545
implementing `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface`
4646
that returns an array of aliases.
4747

Diff for: docs/definitions/type-system/interface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RootQuery:
132132
type: object
133133
config:
134134
fields:
135-
allCaracters:
135+
allCharacters:
136136
type: "[Character]" # interface as the return type
137137
resolve: "@=res('all_characters')"
138138
```

Diff for: docs/error-handling/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ You can custom the default errors handler using configuration:
140140
overblog_graphql:
141141
errors_handler:
142142
enabled: true # false will totally disabled errors handling
143-
internal_error_message: 'Internal error occured' # custom generic error message
143+
internal_error_message: 'Internal error occurred' # custom generic error message
144144
rethrow_internal_exceptions: false # re-throw internal exception
145145
debug: false # will add trace stack and debugMessage to error
146146
log: true # false will disabled the default logging behavior

Diff for: docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ overblog_graphql_multiple_endpoint:
104104
```
105105
106106
107-
Optionnal features depencies
107+
Optional features dependencies
108108
------------
109109
110110
- To use the Validator features, you must also install `symfony/validator` and `doctrine/annotations`

Diff for: docs/validation/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ class UserResolver implements MutationInterface, AliasedInterface
777777
/*
778778
* Validates:
779779
* - username against 'Length'
780-
* - password againt 'IdenticalTo'
780+
* - password against 'IdenticalTo'
781781
*/
782782
$validator->validate('registration');
783783

Diff for: src/Annotation/Provider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
final class Provider extends Annotation
1919
{
2020
/**
21-
* Optionnal prefix for provider fields.
21+
* Optional prefix for provider fields.
2222
*/
2323
public ?string $prefix;
2424

Diff for: src/Command/GraphQLDumpSchemaCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(string $baseExportPath, RequestExecutor $requestExec
3434
$this->baseExportPath = $baseExportPath;
3535
$this->requestExecutor = $requestExecutor;
3636

37-
// Disable exception when an unresolvable types is encoutered. Schema dump will try to access the Query, Mutation and Subscription types and will fail if they are not defined.
37+
// Disable exception when an unresolvable types is encountered. Schema dump will try to access the Query, Mutation and Subscription types and will fail if they are not defined.
3838
$typeResolver->setIgnoreUnresolvableException(true);
3939
}
4040

Diff for: src/Generator/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
final class Collection extends BaseCollection
1414
{
1515
/**
16-
* Mark converters to be used by convertion of array values.
16+
* Mark converters to be used by conversion of array values.
1717
*/
1818
protected array $converters = [ExpressionConverter::class];
1919
}

Diff for: src/Generator/TypeBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function build(array $config, string $type): PhpFile
145145
/**
146146
* Converts a native GraphQL type string into the `webonyx/graphql-php`
147147
* type literal. References to user-defined types are converted into
148-
* TypeResovler method call and wrapped into a closure.
148+
* TypeResolver method call and wrapped into a closure.
149149
*
150150
* Render examples:
151151
*

Diff for: src/Transformer/ArgumentsTransformer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function populateObject(Type $type, $data, bool $multiple, ResolveInfo $
129129

130130
/**
131131
* Given a GraphQL type and an array of data, populate corresponding object recursively
132-
* using annoted classes.
132+
* using annotated classes.
133133
*
134134
* @param mixed $data
135135
*

Diff for: src/Validator/ValidationNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* ValidationNode.
2020
*
2121
* Holds the input data of the associated to it GraphQL type. Properties will be
22-
* created dinamically in runtime. In order to avoid name conflicts all built in
22+
* created dynamically in runtime. In order to avoid name conflicts all built in
2323
* property names are prefixed with double underscores.
2424
*
2525
* It also contains variables of the resolver context, in which this class was

Diff for: tests/Config/Parser/MetadataParserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public function testInvalidUnion(): void
556556
try {
557557
$file = __DIR__.'/fixtures/annotations/Invalid/InvalidUnion.php';
558558
$this->parser('parse', new SplFileInfo($file), $this->containerBuilder, $this->parserConfig);
559-
$this->fail('Union with missing resolve type shoud have raise an exception');
559+
$this->fail('Union with missing resolve type should have raise an exception');
560560
} catch (Exception $e) {
561561
$this->assertInstanceOf(InvalidArgumentException::class, $e);
562562
$this->assertMatchesRegularExpression('/The metadata '.$this->formatMetadata('Union').' has no "resolveType"/', $e->getPrevious()->getMessage());

Diff for: tests/Relay/Connection/PaginatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testForwardAfterLast(): void
117117
$this->assertTrue($result->getPageInfo()->getHasPreviousPage()); // on previous page there is still ['A', 'B', 'C', 'D', 'E']
118118
}
119119

120-
public function testForwardAfterWithUnvalidCursorAndSlice(): void
120+
public function testForwardAfterWithInvalidCursorAndSlice(): void
121121
{
122122
$paginator = new Paginator(function ($offset, $limit) {
123123
$this->assertSame(0, $offset);

0 commit comments

Comments
 (0)