Skip to content

Commit 6ff0e7a

Browse files
szepeviktorspawnia
authored andcommitted
Fix typos
1 parent 8e306f2 commit 6ff0e7a

10 files changed

+15
-15
lines changed

UPGRADE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ One example: added quotes around `parentType.fieldName` in error message:
273273
+ Cannot return null for non-nullable field "parentType.fieldName".
274274
```
275275

276-
But expect other simiar changes like this.
276+
But expect other similar changes like this.
277277

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

docs/executing-queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ Or with a standard server:
207207
use GraphQL\Server\StandardServer;
208208

209209
$server = new StandardServer([
210-
'validationRules' => $myValiationRules
210+
'validationRules' => $myValidationRules
211211
]);
212212
```

tests/Error/ErrorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testDefaultErrorFormatterIncludesExtensionFields(): void
148148
);
149149
}
150150

151-
public function testErrorReadsOverridenMethods(): void
151+
public function testErrorReadsOverriddenMethods(): void
152152
{
153153
$error = new class('msg', null, null, [], null, null, ['foo' => 'bar']) extends Error {
154154
public function getExtensions(): ?array

tests/Executor/MutationsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ private function schema(): Schema
102102
]);
103103
}
104104

105-
/** @see it('evaluates mutations correctly in the presense of a failed mutation') */
106-
public function testEvaluatesMutationsCorrectlyInThePresenseOfAFailedMutation(): void
105+
/** @see it('evaluates mutations correctly in the presence of a failed mutation') */
106+
public function testEvaluatesMutationsCorrectlyInThePresenceOfAFailedMutation(): void
107107
{
108108
$doc = 'mutation M {
109109
first: immediatelyChangeTheNumber(newNumber: 1) {

tests/Type/ValidationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ public function testRejectsANonOutputTypeAsAnObjectFieldType(): void
11491149
}
11501150

11511151
/** @see it('rejects with relevant locations for a non-output type as an Object field type') */
1152-
public function testRejectsWithReleventLocationsForANonOutputTypeAsAnObjectFieldType(): void
1152+
public function testRejectsWithRelevantLocationsForANonOutputTypeAsAnObjectFieldType(): void
11531153
{
11541154
$schema = BuildSchema::build('
11551155
type Query {

tests/Utils/BreakingChangesFinderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public function testShouldRetectIfATypeWasRemovedFromAUnionType(): void
516516
'field1' => Type::string(),
517517
],
518518
]);
519-
// logially equivalent to type1; findTypesRemovedFromUnions should not
519+
// logically equivalent to type1; findTypesRemovedFromUnions should not
520520
// treat this as different than type1
521521
$type1a = new ObjectType([
522522
'name' => 'Type1',
@@ -1673,7 +1673,7 @@ public function testShouldDetectIfATypeWasAddedToAUnionType(): void
16731673
'field1' => Type::string(),
16741674
],
16751675
]);
1676-
// logially equivalent to type1; findTypesRemovedFromUnions should not
1676+
// logically equivalent to type1; findTypesRemovedFromUnions should not
16771677
// treat this as different than type1
16781678
$type1a = new ObjectType([
16791679
'name' => 'Type1',

tests/Validator/KnownArgumentNamesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function testUnknownArgOnStandardDirective(): void
313313
);
314314
}
315315

316-
/** @see it('unknown arg on overrided standard directive') */
316+
/** @see it('unknown arg on overridden standard directive') */
317317
public function testUnknownArgOnOverriddenStandardDirective(): void
318318
{
319319
$this->expectFailsRule(

tests/Validator/KnownDirectivesTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ public function testWithStandardDirective(): void
191191
);
192192
}
193193

194-
/** @see it('with overrided standard directive') */
195-
public function testWithOverridedStandardDirective(): void
194+
/** @see it('with overridden standard directive') */
195+
public function testWithOverriddenStandardDirective(): void
196196
{
197197
$this->expectSDLErrors(
198198
'

tests/Validator/OverlappingFieldsCanBeMergedTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,8 @@ public function testDisallowsDifferingDeepReturnTypesDespiteNoOverlap(): void
10671067
);
10681068
}
10691069

1070-
/** @see it('allows non-conflicting overlaping types') */
1071-
public function testAllowsNonConflictingOverlapingTypes(): void
1070+
/** @see it('allows non-conflicting overlapping types') */
1071+
public function testAllowsNonConflictingOverlappingTypes(): void
10721072
{
10731073
$this->expectPassesRuleWithSchema(
10741074
$this->getSchema(),

tests/Validator/ProvidedRequiredArgumentsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ public function testMissingArgOnStandardDirective(): void
361361
);
362362
}
363363

364-
/** @see it('Missing arg on overrided standard directive') */
365-
public function testMissingArgOnOverridedStandardDirective(): void
364+
/** @see it('Missing arg on overridden standard directive') */
365+
public function testMissingArgOnOverriddenStandardDirective(): void
366366
{
367367
$this->expectFailsRule(
368368
new ProvidedRequiredArgumentsOnDirectives(),

0 commit comments

Comments
 (0)