@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | * @param \GraphQL\Server\OperationParams $params |
290 | 290 | * @param \GraphQL\Language\AST\DocumentNode $document |
291 | 291 | * |
292 | - * @return \GraphQL\Executor\Promise\Promise|mixed |
|
292 | + * @return \GraphQL\Executor\Promise\Promise |
|
293 | 293 | */ |
294 | 294 | protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document) { |
295 | 295 | $contextCacheId = 'ccid:' . $this->cacheIdentifier($params, $document, new CacheableMetadata()); |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | * @param \GraphQL\Server\ServerConfig $config |
420 | 420 | * @param \GraphQL\Server\OperationParams $params |
421 | 421 | * @param \GraphQL\Language\AST\DocumentNode $document |
422 | - * @param $operation |
|
422 | + * @param string $operation |
|
423 | 423 | * |
424 | 424 | * @return mixed |
425 | 425 | */ |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * @param \GraphQL\Server\ServerConfig $config |
437 | 437 | * @param \GraphQL\Server\OperationParams $params |
438 | 438 | * @param \GraphQL\Language\AST\DocumentNode $document |
439 | - * @param $operation |
|
439 | + * @param string $operation |
|
440 | 440 | * |
441 | 441 | * @return mixed |
442 | 442 | */ |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * @param \GraphQL\Server\ServerConfig $config |
454 | 454 | * @param \GraphQL\Server\OperationParams $params |
455 | 455 | * @param \GraphQL\Language\AST\DocumentNode $document |
456 | - * @param $operation |
|
456 | + * @param string $operation |
|
457 | 457 | * |
458 | 458 | * @return array |
459 | 459 | */ |
@@ -2,13 +2,10 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\GraphQL\Execution; |
4 | 4 | |
5 | -use Drupal\Core\Cache\CacheableDependencyInterface; |
|
6 | 5 | use Drupal\Core\Cache\CacheableMetadata; |
7 | 6 | use Drupal\Core\Cache\CacheBackendInterface; |
8 | 7 | use Drupal\Core\Cache\Context\CacheContextsManager; |
9 | -use Drupal\Core\Session\AccountProxyInterface; |
|
10 | 8 | use Drupal\graphql\Plugin\SchemaPluginManager; |
11 | -use Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface; |
|
12 | 9 | use GraphQL\Error\Error; |
13 | 10 | use GraphQL\Error\FormattedError; |
14 | 11 | use GraphQL\Executor\ExecutionResult; |
@@ -25,7 +22,6 @@ discard block |
||
25 | 22 | use GraphQL\Utils\AST; |
26 | 23 | use GraphQL\Utils\TypeInfo; |
27 | 24 | use GraphQL\Utils\Utils; |
28 | -use GraphQL\Validator\DocumentValidator; |
|
29 | 25 | use GraphQL\Validator\Rules\AbstractValidationRule; |
30 | 26 | use GraphQL\Validator\ValidationContext; |
31 | 27 |
@@ -384,8 +384,6 @@ |
||
384 | 384 | /** |
385 | 385 | * Retrieves the subscription definition for a given field reference. |
386 | 386 | * |
387 | - * @param array $mutation |
|
388 | - * The subscription reference. |
|
389 | 387 | * |
390 | 388 | * @return array |
391 | 389 | * The subscription definition. |
@@ -71,9 +71,8 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @param $schema |
|
75 | - * @param $operations |
|
76 | - * @param array $globals |
|
74 | + * @param string $schema |
|
75 | + * @param \GraphQL\Server\OperationParams $operations |
|
77 | 76 | * |
78 | 77 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
79 | 78 | * @throws \Drupal\Component\Plugin\Exception\PluginException |
@@ -86,9 +85,8 @@ discard block |
||
86 | 85 | } |
87 | 86 | |
88 | 87 | /** |
89 | - * @param $schema |
|
88 | + * @param string $schema |
|
90 | 89 | * @param $operations |
91 | - * @param array $globals |
|
92 | 90 | * |
93 | 91 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
94 | 92 | * @throws \Drupal\Component\Plugin\Exception\PluginException |