Skip to content

Commit 9052012

Browse files
committed
Clarify validation rules default
1 parent 79c204d commit 9052012

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GraphQL.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ public static function executeQuery(
110110
* Same as executeQuery(), but requires PromiseAdapter and always returns a Promise.
111111
* Useful for Async PHP platforms.
112112
*
113-
* @param string|DocumentNode $source
114-
* @param mixed $rootValue
115-
* @param mixed $context
116-
* @param array<string, mixed>|null $variableValues
117-
* @param array<ValidationRule>|null $validationRules
113+
* @param string|DocumentNode $source
114+
* @param mixed $rootValue
115+
* @param mixed $context
116+
* @param array<string, mixed>|null $variableValues
117+
* @param array<ValidationRule>|null $validationRules Defaults to using all available rules
118118
*
119119
* @api
120120
*

src/Validator/DocumentValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class DocumentValidator
8686
/**
8787
* Validate a GraphQL query against a schema.
8888
*
89-
* @param array<ValidationRule>|null $rules
89+
* @param array<ValidationRule>|null $rules Defaults to using all available rules
9090
*
9191
* @throws \Exception
9292
*

0 commit comments

Comments
 (0)