From 6ff0e7acaca57833131a79da559718b84b99cff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 1 Oct 2023 17:16:28 +0000 Subject: [PATCH] Fix typos --- UPGRADE.md | 2 +- docs/executing-queries.md | 2 +- tests/Error/ErrorTest.php | 2 +- tests/Executor/MutationsTest.php | 4 ++-- tests/Type/ValidationTest.php | 2 +- tests/Utils/BreakingChangesFinderTest.php | 4 ++-- tests/Validator/KnownArgumentNamesTest.php | 2 +- tests/Validator/KnownDirectivesTest.php | 4 ++-- tests/Validator/OverlappingFieldsCanBeMergedTest.php | 4 ++-- tests/Validator/ProvidedRequiredArgumentsTest.php | 4 ++-- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 00c27f673..987b27f01 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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 diff --git a/docs/executing-queries.md b/docs/executing-queries.md index e407f9a29..7c5ad5282 100644 --- a/docs/executing-queries.md +++ b/docs/executing-queries.md @@ -207,6 +207,6 @@ Or with a standard server: use GraphQL\Server\StandardServer; $server = new StandardServer([ - 'validationRules' => $myValiationRules + 'validationRules' => $myValidationRules ]); ``` diff --git a/tests/Error/ErrorTest.php b/tests/Error/ErrorTest.php index cd5e5fe1c..ba8a7ab2f 100644 --- a/tests/Error/ErrorTest.php +++ b/tests/Error/ErrorTest.php @@ -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 diff --git a/tests/Executor/MutationsTest.php b/tests/Executor/MutationsTest.php index 55e5e7042..71a90e710 100644 --- a/tests/Executor/MutationsTest.php +++ b/tests/Executor/MutationsTest.php @@ -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) { diff --git a/tests/Type/ValidationTest.php b/tests/Type/ValidationTest.php index 2e9538d28..8796702af 100644 --- a/tests/Type/ValidationTest.php +++ b/tests/Type/ValidationTest.php @@ -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 { diff --git a/tests/Utils/BreakingChangesFinderTest.php b/tests/Utils/BreakingChangesFinderTest.php index d46df5761..fd263cab7 100644 --- a/tests/Utils/BreakingChangesFinderTest.php +++ b/tests/Utils/BreakingChangesFinderTest.php @@ -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', @@ -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', diff --git a/tests/Validator/KnownArgumentNamesTest.php b/tests/Validator/KnownArgumentNamesTest.php index 59feeb633..b29b45db3 100644 --- a/tests/Validator/KnownArgumentNamesTest.php +++ b/tests/Validator/KnownArgumentNamesTest.php @@ -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( diff --git a/tests/Validator/KnownDirectivesTest.php b/tests/Validator/KnownDirectivesTest.php index ece150fcf..c4f0f518c 100644 --- a/tests/Validator/KnownDirectivesTest.php +++ b/tests/Validator/KnownDirectivesTest.php @@ -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( ' diff --git a/tests/Validator/OverlappingFieldsCanBeMergedTest.php b/tests/Validator/OverlappingFieldsCanBeMergedTest.php index a680a903a..228e86c83 100644 --- a/tests/Validator/OverlappingFieldsCanBeMergedTest.php +++ b/tests/Validator/OverlappingFieldsCanBeMergedTest.php @@ -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(), diff --git a/tests/Validator/ProvidedRequiredArgumentsTest.php b/tests/Validator/ProvidedRequiredArgumentsTest.php index d7ec1752c..fb2cc0f39 100644 --- a/tests/Validator/ProvidedRequiredArgumentsTest.php +++ b/tests/Validator/ProvidedRequiredArgumentsTest.php @@ -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(),