Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and spawnia committed Oct 1, 2023
1 parent 8e306f2 commit 6ff0e7a
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ One example: added quotes around `parentType.fieldName` in error message:
+ Cannot return null for non-nullable field "parentType.fieldName".
```

But expect other simiar changes like this.
But expect other similar changes like this.

## Upgrade v0.12.x > v0.13.x

Expand Down
2 changes: 1 addition & 1 deletion docs/executing-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,6 @@ Or with a standard server:
use GraphQL\Server\StandardServer;

$server = new StandardServer([
'validationRules' => $myValiationRules
'validationRules' => $myValidationRules
]);
```
2 changes: 1 addition & 1 deletion tests/Error/ErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function testDefaultErrorFormatterIncludesExtensionFields(): void
);
}

public function testErrorReadsOverridenMethods(): void
public function testErrorReadsOverriddenMethods(): void
{
$error = new class('msg', null, null, [], null, null, ['foo' => 'bar']) extends Error {
public function getExtensions(): ?array
Expand Down
4 changes: 2 additions & 2 deletions tests/Executor/MutationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ private function schema(): Schema
]);
}

/** @see it('evaluates mutations correctly in the presense of a failed mutation') */
public function testEvaluatesMutationsCorrectlyInThePresenseOfAFailedMutation(): void
/** @see it('evaluates mutations correctly in the presence of a failed mutation') */
public function testEvaluatesMutationsCorrectlyInThePresenceOfAFailedMutation(): void
{
$doc = 'mutation M {
first: immediatelyChangeTheNumber(newNumber: 1) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Type/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ public function testRejectsANonOutputTypeAsAnObjectFieldType(): void
}

/** @see it('rejects with relevant locations for a non-output type as an Object field type') */
public function testRejectsWithReleventLocationsForANonOutputTypeAsAnObjectFieldType(): void
public function testRejectsWithRelevantLocationsForANonOutputTypeAsAnObjectFieldType(): void
{
$schema = BuildSchema::build('
type Query {
Expand Down
4 changes: 2 additions & 2 deletions tests/Utils/BreakingChangesFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public function testShouldRetectIfATypeWasRemovedFromAUnionType(): void
'field1' => Type::string(),
],
]);
// logially equivalent to type1; findTypesRemovedFromUnions should not
// logically equivalent to type1; findTypesRemovedFromUnions should not
// treat this as different than type1
$type1a = new ObjectType([
'name' => 'Type1',
Expand Down Expand Up @@ -1673,7 +1673,7 @@ public function testShouldDetectIfATypeWasAddedToAUnionType(): void
'field1' => Type::string(),
],
]);
// logially equivalent to type1; findTypesRemovedFromUnions should not
// logically equivalent to type1; findTypesRemovedFromUnions should not
// treat this as different than type1
$type1a = new ObjectType([
'name' => 'Type1',
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/KnownArgumentNamesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public function testUnknownArgOnStandardDirective(): void
);
}

/** @see it('unknown arg on overrided standard directive') */
/** @see it('unknown arg on overridden standard directive') */
public function testUnknownArgOnOverriddenStandardDirective(): void
{
$this->expectFailsRule(
Expand Down
4 changes: 2 additions & 2 deletions tests/Validator/KnownDirectivesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public function testWithStandardDirective(): void
);
}

/** @see it('with overrided standard directive') */
public function testWithOverridedStandardDirective(): void
/** @see it('with overridden standard directive') */
public function testWithOverriddenStandardDirective(): void
{
$this->expectSDLErrors(
'
Expand Down
4 changes: 2 additions & 2 deletions tests/Validator/OverlappingFieldsCanBeMergedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ public function testDisallowsDifferingDeepReturnTypesDespiteNoOverlap(): void
);
}

/** @see it('allows non-conflicting overlaping types') */
public function testAllowsNonConflictingOverlapingTypes(): void
/** @see it('allows non-conflicting overlapping types') */
public function testAllowsNonConflictingOverlappingTypes(): void
{
$this->expectPassesRuleWithSchema(
$this->getSchema(),
Expand Down
4 changes: 2 additions & 2 deletions tests/Validator/ProvidedRequiredArgumentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ public function testMissingArgOnStandardDirective(): void
);
}

/** @see it('Missing arg on overrided standard directive') */
public function testMissingArgOnOverridedStandardDirective(): void
/** @see it('Missing arg on overridden standard directive') */
public function testMissingArgOnOverriddenStandardDirective(): void
{
$this->expectFailsRule(
new ProvidedRequiredArgumentsOnDirectives(),
Expand Down

0 comments on commit 6ff0e7a

Please sign in to comment.